namespace tests\unit\models;
use Codeception\Test\Unit;
-use tests\fixtures\CityFixture;
use yii_app\records\City;
/**
- * City model test
+ * City model validation tests
+ *
+ * Tests model validation rules without database interaction.
+ * No fixtures are loaded - tests work with model instances only.
*/
class CityTest extends Unit
{
- /**
- * @var \tests\UnitTester
- */
- protected $tester;
-
- /**
- * @return array
- */
- public function _fixtures(): array
- {
- return [
- 'city' => [
- 'class' => CityFixture::class,
- 'dataFile' => '@app/tests/_data/city.php',
- ],
- ];
- }
-
/**
* Тест: пустые обязательные поля не проходят валидацию
*/