Neos\Flow\Tests\Unit\I18n\LocaleCollectionTest::existingLocaleIsNotAddedToTheCollection PHP Method

existingLocaleIsNotAddedToTheCollection() public method

    public function existingLocaleIsNotAddedToTheCollection()
    {
        $localeShouldBeAdded = $this->localeCollection->addLocale($this->locales[0]);
        $localeShouldNotBeAdded = $this->localeCollection->addLocale(new I18n\Locale('en'));
        $this->assertTrue($localeShouldBeAdded);
        $this->assertFalse($localeShouldNotBeAdded);
    }