Код: Выделить всё
public function testGetDirectionWithDefaultLang() {
$direction = Directions::findOne(['id'=>1]);
codecept_debug($direction);
// $this->assertEquals($direction->page->title == 'Направление номер 1');
expect_that($direction->page->title = 'sdas');
}
Код: Выделить всё
[yii\base\ErrorException] Trying to get property 'id' of non-object