Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function testMigrate() |
||
18 | { |
||
19 | $documentManager = $this->createDocumentManager(); |
||
20 | $client = $documentManager->getCouchDBClient(); |
||
21 | |||
22 | $client->putDocument(array('foo' => 'bar'), 'foo'); |
||
23 | |||
24 | $document = $documentManager->find(__NAMESPACE__ . '\\MigrateDocument', 'foo'); |
||
25 | |||
26 | $this->assertInstanceOf(__NAMESPACE__ . '\\MigrateDocument', $document); |
||
27 | $this->assertEquals('bar', $document->name); |
||
28 | } |
||
29 | } |
||
60 |