Example #1
0
 public function testMigrator()
 {
     $this->migrator->migrate('/test/page');
     $this->migrator->migrate('/test/page/foo');
     $res = $this->dm->find(null, '/test/page');
     $this->assertNotNull($res);
     $this->assertEquals('Test', $res->getTitle());
     $res = $this->dm->find(null, '/test/page/foo');
     $this->assertNotNull($res);
     $this->assertEquals('Foobar', $res->getTitle());
 }