protected function setUp() { if (CategoryQuery::create()->count() === 0) { $category = new Category(); $category->save(); } }