/** * Test getter/setter for locale property */ public function testGetSetLocale() { $this->assertNull($this->completeness->getLocale()); $expectedLocale = $this->createLocale('en_US'); $this->assertEntity($this->completeness->setLocale($expectedLocale)); $this->assertEquals($expectedLocale, $this->completeness->getLocale()); }
function it_normalizes_completeness(Completeness $completeness, ChannelInterface $channel, LocaleInterface $locale) { $channel->getCode()->willReturn('ecommerce'); $locale->getCode()->willReturn('en_US'); $completeness->getChannel()->willReturn($channel); $completeness->getLocale()->willReturn($locale); $completeness->getRatio()->willReturn(42); $this->normalize($completeness, 'mongodb_json', [])->shouldReturn(["ecommerce-en_US" => 42]); }
/** * {@inheritDoc} */ public function getLocale() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getLocale', array()); return parent::getLocale(); }