Skip to content

Commit

Permalink
add test on repository folder (#1222)
Browse files Browse the repository at this point in the history
  • Loading branch information
veolys-nanne committed May 23, 2017
1 parent e25b5e4 commit 56005ba
Showing 1 changed file with 12 additions and 0 deletions.
Expand Up @@ -44,6 +44,18 @@ public function testFindFolderTree()
$this->assertTree($tree[1]['children'][0], 0);
}

/**
* test findBySite
*/
public function testFindBySite()
{
$builder = $this->repository->findBySite('2');
$this->assertInstanceOf('Doctrine\MongoDB\Query\Builder', $builder);

$folders = $builder->getQuery()->execute();
$this->assertEquals(6, count($folders));
}

/**
* @param mixed $tree
* @param int $childrenCount
Expand Down

0 comments on commit 56005ba

Please sign in to comment.