1 | <?php |
||
8 | class RADRepositorySpec extends ObjectBehavior |
||
9 | { |
||
10 | /** |
||
11 | * @param Doctrine\ORM\EntityManager $em |
||
12 | * @param Doctrine\ORM\Mapping\ClassMetadata $class |
||
13 | * @param Doctrine\ORM\QueryBuilder $qb |
||
14 | * @param Doctrine\ORM\AbstractQuery $query |
||
15 | */ |
||
16 | function let($em, $class, $qb, $query) |
||
27 | |||
28 | function it_should_be_a_rad_entity_repository() |
||
32 | |||
33 | function it_should_find_all_valid_entities($qb, $query) |
||
39 | |||
40 | function it_should_find_only_one_result_when_method_contains_One($qb, $query) |
||
48 | |||
49 | function it_should_throw_non_unique_result_exception_when_finding_one_entity_and_multiple_results_were_found($qb, $query) |
||
56 | } |
||
57 |