/** * Pass parent document and check message. */ public function testTranslateStrict() { $this->converter = new TranslationConverter($this->dm); $class = 'Doctrine\\Tests\\Models\\Translation\\ChildTranslationComment'; $parentClass = 'Doctrine\\Tests\\Models\\Translation\\Comment'; $field = 'text'; $comment = $this->node->addNode('convert'); $comment->setProperty($field, 'Lorem ipsum...'); $comment->setProperty('phpcr:class', $class); $comment->setProperty('phpcr:classparents', array($parentClass)); $this->session->save(); $this->assertFalse($this->converter->convert($parentClass, array('en'))); $notices = $this->converter->getLastNotices(); $this->assertCount(1, $notices); $this->assertArrayHasKey('/functional/convert', $notices); $this->assertFalse($this->session->hasPendingChanges()); }