/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/cakephp/tests/Fixture
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/cakephp/tests/Fixture/FixturizedTestCase.php (2418B)
*/
protected $fixtures = ['core.Categories', 'core.Articles'];
/**
* test that the shared fixture is correctly set
*/
public function testFixturePresent(): void
{
$this->assertInstanceOf(FixtureManager::class, $this->fixtureManager);
}
/**
* test that it is possible to load fixtures on demand
*/
public function testFixtureLoadOnDemand(): void
{
$this->loadFixtures('Categories');
}
/**
* test that calling loadFixtures without args loads all fixtures
*/
public function testLoadAllFixtures(): void
{
$this->loadFixtures();
$article = $this->getTableLocator()->get('Articles')->get(1);
$this->assertSame(1, $article->id);
$category = $this->getTableLocator()->get('Categories')->get(1);
$this->assertSame(1, $category->id);
}
/**
* test that a test is marked as skipped using skipIf and its first parameter evaluates to true
*/
public function testSkipIfTrue(): void
{
$this->skipIf(true);
}
/**
* test that a test is not marked as skipped using skipIf and its first parameter evaluates to false
*/
public function testSkipIfFalse(): void
{
$this->skipIf(false);
}
/**
* test that a fixtures are unloaded even if the test throws exceptions
*
* @throws \Exception
*/
public function testThrowException(): void
{
throw new Exception();
}
}