Polyglot\PolyglotDatabaseTest::testScopeWithLang PHP Метод

testScopeWithLang() публичный Метод

public testScopeWithLang ( )
    public function testScopeWithLang()
    {
        $article = $this->createArticle();
        $article = RealArticle::withLang('fr')->where('id', $article->id)->first();
        $this->assertEquals($article->fr->title, "Start title");
        // empty
        $article = RealArticle::withLang()->where('id', $article->id)->first();
        $this->assertEquals($article->fr->title, "Start title");
    }