public function testPostHasTranslation() { $post = new Post(); $this->assertFalse($post->hasTranslation()); $this->assertFalse($post->hasTranslation('en-US')); $post = Post::findOne(2); $this->assertTrue($post->hasTranslation()); $this->assertTrue($post->hasTranslation('en-US')); $this->assertTrue($post->hasTranslation('de-DE')); $this->assertTrue($post->hasTranslation('ru-RU')); }