/** * @expectedException \Sententiaregum\User\Domain\exception\ChangeUserLocaleException */ public function testNoLocaleChange() { $this->user->changeUserLocale('de'); $this->assertSame('de', $this->user->getSimpleProfile()->getLocale()); $this->user->changeUserLocale('de'); }