Polyglot\Services\LangTest::testCanGetFallbackLocale PHP Метод

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

    public function testCanGetFallbackLocale()
    {
        $this->config = $this->mockConfig()->shouldReceive('get')->with('polyglot::fallback')->andReturn('es')->mock();
        $this->assertEquals('es', $this->translator->fallbackLocale());
        $this->config = $this->mockConfig()->shouldReceive('get')->with('polyglot::fallback')->andReturn(null)->mock();
        $this->assertEquals('fr', $this->translator->fallbackLocale());
    }