public function seeCurrentActionIs($action)
    {
        $this->getRouteByAction($action); // Fails if route does not exists
        $currentRoute = $this->app->request->route();
        $currentAction = $currentRoute ? $currentRoute->getActionName() : '';
        $currentAction = ltrim(str_replace($this->getRootControllerNamespace(), "", $currentAction), '\\');

        if ($currentAction != $action) {
            $this->fail("Current action is \"$currentAction\"");
        }
    }
public function seeCurrentActionIs($action)
    {
        $this->getRouteByAction($action); // Fails if route does not exists
        $currentRoute = $this->app->request->route();
        $currentAction = $currentRoute ? $currentRoute->getActionName() : '';
        $currentAction = ltrim(str_replace($this->getRootControllerNamespace(), "", $currentAction), '\\');

        if ($currentAction != $action) {
            $this->fail("Current action is \"$currentAction\"");
        }
    }
public function seeCurrentActionIs ( $ action ) { $ this -> getRouteByAction ( $ action ) ; // Fails if route does not exists $ currentRoute = $ this -> app -> request -> route ( ) ; $ currentAction = $ currentRoute ? $ currentRoute -> getActionName ( ) : '' ; $ currentAction = ltrim ( str_replace ( $ this -> getRootControllerNamespace ( ) , "" , $ currentAction ) , '\\' ) ; if ( $ currentAction != $ action ) { $ this -> fail ( "Current action is \"$currentAction\"" ) ; } }
Checks that current url matches action

``` php
<?php
$I->seeCurrentActionIs('PostsController@index');
?>
```

@param $action
Checks that current url matches action