Change @expectException with $this->expectException.

This commit is contained in:
Wilmer Arambula
2024-03-20 18:49:27 -03:00
parent ae7db0aaee
commit aec3b79e6d
4 changed files with 8 additions and 14 deletions

View File

@ -215,19 +215,15 @@ class FixtureControllerTest extends DatabaseTestCase
$this->assertEmpty(FixtureStorage::$firstFixtureData, 'first fixture data should not be loaded');
}
/**
* @expectedException \yii\console\Exception
*/
public function testNoFixturesWereFoundInLoad()
{
$this->expectException('\yii\console\Exception');
$this->_fixtureController->actionLoad(['NotExistingFixture']);
}
/**
* @expectedException \yii\console\Exception
*/
public function testNoFixturesWereFoundInUnload()
{
$this->expectException('\yii\console\Exception');
$this->_fixtureController->actionUnload(['NotExistingFixture']);
}