for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ScayTrase\Api\Cruds\Tests;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class AccessTest extends WebTestCase
{
use CrudsTestCaseTrait;
public function testEntityRouting()
self::bootKernel();
$this->doRequest('/api/entity/my-entity/create', 'POST', []);
$this->doRequest('/api/entity/my-entity/read', 'GET', []);
$this->doRequest('/api/entity/my-entity/update', 'POST', []);
$this->doRequest('/api/entity/my-entity/delete', 'POST', []);
$this->doRequest('/api/entity/my-entity/search', 'GET', []);
}
private function doRequest($path, $method, array $args = [])
$args
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$client = self::createClient();
$client->request($method, $path);
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.