| @@ 76-95 (lines=20) @@ | ||
| 73 | )->shouldHaveBeenCalled(); |
|
| 74 | } |
|
| 75 | ||
| 76 | function it_reads_parameters_without_explicit_column_names() |
|
| 77 | { |
|
| 78 | $this->validateData( |
|
| 79 | ['first_name' => 'unique_with:users,middle_name,last_name'], |
|
| 80 | [ |
|
| 81 | 'first_name' => 'Foo', |
|
| 82 | 'middle_name' => 'Bar', |
|
| 83 | 'last_name' => 'Baz', |
|
| 84 | ] |
|
| 85 | ); |
|
| 86 | ||
| 87 | $this->presenceVerifier->getCount( |
|
| 88 | 'users', |
|
| 89 | 'first_name', |
|
| 90 | 'Foo', |
|
| 91 | null, |
|
| 92 | null, |
|
| 93 | ['middle_name' => 'Bar', 'last_name' => 'Baz'] |
|
| 94 | )->shouldHaveBeenCalled(); |
|
| 95 | } |
|
| 96 | ||
| 97 | function it_reads_parameters_with_explicit_column_names() |
|
| 98 | { |
|
| @@ 97-116 (lines=20) @@ | ||
| 94 | )->shouldHaveBeenCalled(); |
|
| 95 | } |
|
| 96 | ||
| 97 | function it_reads_parameters_with_explicit_column_names() |
|
| 98 | { |
|
| 99 | $this->validateData( |
|
| 100 | ['first_name' => 'unique_with:users,first_name = name,middle_name = mid_name,last_name=sur_name'], |
|
| 101 | [ |
|
| 102 | 'first_name' => 'Foo', |
|
| 103 | 'middle_name' => 'Bar', |
|
| 104 | 'last_name' => 'Baz', |
|
| 105 | ] |
|
| 106 | ); |
|
| 107 | ||
| 108 | $this->presenceVerifier->getCount( |
|
| 109 | 'users', |
|
| 110 | 'name', |
|
| 111 | 'Foo', |
|
| 112 | null, |
|
| 113 | null, |
|
| 114 | ['mid_name' => 'Bar', 'sur_name' => 'Baz'] |
|
| 115 | )->shouldHaveBeenCalled(); |
|
| 116 | } |
|
| 117 | ||
| 118 | function it_reads_implicit_integer_ignore_id_with_default_column_name() |
|
| 119 | { |
|