Skip to content

Commit

Permalink
refresh functional test on node repository
Browse files Browse the repository at this point in the history
  • Loading branch information
veolys-nanne committed Aug 9, 2016
1 parent b7025a5 commit 4bf747e
Showing 1 changed file with 25 additions and 1 deletion.
Expand Up @@ -607,7 +607,7 @@ public function provideFindLastVersionByTypeCurrentlyPublished()
{
return array(
array("1", 0),
array("2", 5),
array("2", 14),
);
}

Expand All @@ -633,4 +633,28 @@ public function provideFindByPathCurrentlyPublished()
array("transverse", "2", 0),
);
}

/**
* @param string $path
* @param string $siteId
* @param string $language
* @param integer $expectedCount
*
* @dataProvider provideFindByPathCurrentlyPublishedAndLanguage
*/
public function testFindByPathCurrentlyPublishedAndLanguage($path, $siteId, $language, $expectedCount)
{
$this->assertCount($expectedCount, $this->repository->findByPathCurrentlyPublishedAndLanguage($path, $siteId, $language));
}

/**
* @return array
*/
public function provideFindByPathCurrentlyPublishedAndLanguage()
{
return array(
array("root", "2", "en", 7),
array("transverse", "2", "en", 0),
);
}
}

0 comments on commit 4bf747e

Please sign in to comment.