|
@@ 43-49 (lines=7) @@
|
| 40 |
|
} |
| 41 |
|
|
| 42 |
|
/** @test */ |
| 43 |
|
function it_set_the_FROM_value_giving_a_polymorphic_entity_the_first_value_must_be_the_class_entity() |
| 44 |
|
{ |
| 45 |
|
$user_id = 1; |
| 46 |
|
$user_class = 'User'; |
| 47 |
|
|
| 48 |
|
$this->shouldThrow('InvalidArgumentException')->during('from',[$user_id,$user_class]); |
| 49 |
|
} |
| 50 |
|
|
| 51 |
|
/** @test */ |
| 52 |
|
function it_set_the_TO_value_with_a_single_entity() |
|
@@ 69-75 (lines=7) @@
|
| 66 |
|
} |
| 67 |
|
|
| 68 |
|
/** @test */ |
| 69 |
|
function it_set_the_TO_value_giving_a_polymorphic_entity_the_first_value_must_be_the_class_entity() |
| 70 |
|
{ |
| 71 |
|
$user_id = 1; |
| 72 |
|
$user_class = 'User'; |
| 73 |
|
|
| 74 |
|
$this->shouldThrow('InvalidArgumentException')->during('to',[$user_id,$user_class]); |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
/** @test */ |
| 78 |
|
function it_add_the_url_parameter_to_the_builder() |