Exemplo n.º 1
0
 public function testFind()
 {
     $article = $this->_insertArticle();
     $result = \Model\Article::find(array('title' => $article->title));
     $this->assertInstanceOf('\\Mawelous\\Yamop\\Mapper', $result);
     $cursor = $result->getCursor();
     $this->assertEquals(1, count($cursor));
 }