public function testTranslateAttributeName() { $model = new Post(); $this->assertEquals($model->getTranslateAttributeName('titleLang'), 'title'); $this->assertEquals($model->getTranslateAttributeName('description'), 'description'); $this->assertEquals($model->getTranslateAttributeName('fff'), null); }