Crud\Test\TestCase\Action\AddActionTest::testApiGet PHP Method

testApiGet() public method

Test HTTP & DELETE verbs using API Listener
public testApiGet ( string $method ) : void
$method string
return void
    public function testApiGet($method)
    {
        Router::scope('/', function ($routes) {
            $routes->extensions(['json']);
            $routes->fallbacks();
        });
        $this->{$method}('/Blogs/add.json');
        $this->assertResponseError();
        $this->assertResponseContains('Wrong request method');
    }