| Conditions | 1 |
| Paths | 1 |
| Total Lines | 26 |
| Code Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 2 | Features | 0 |
| 1 | <?php |
||
| 12 | public function run() |
||
| 13 | { |
||
| 14 | \MaksimM\CompositePrimaryKeys\Tests\Stubs\TestUser::create([ |
||
| 15 | 'user_id' => 1, |
||
| 16 | 'organization_id' => \MaksimM\CompositePrimaryKeys\Tests\Stubs\TestOrganization::whereName('Foo') |
||
| 17 | ->first() |
||
| 18 | ->organization_id, |
||
| 19 | 'name' => 'Foo', |
||
| 20 | ]); |
||
| 21 | \MaksimM\CompositePrimaryKeys\Tests\Stubs\TestUser::create([ |
||
| 22 | 'user_id' => 1, |
||
| 23 | 'organization_id' => \MaksimM\CompositePrimaryKeys\Tests\Stubs\TestOrganization::whereName('Bar') |
||
| 24 | ->first() |
||
| 25 | ->organization_id, |
||
| 26 | 'name' => 'Bar', |
||
| 27 | ]); |
||
| 28 | \MaksimM\CompositePrimaryKeys\Tests\Stubs\TestUser::create([ |
||
| 29 | 'user_id' => 2, |
||
| 30 | 'organization_id' => \MaksimM\CompositePrimaryKeys\Tests\Stubs\TestOrganization::whereName('Bar') |
||
| 31 | ->first() |
||
| 32 | ->organization_id, |
||
| 33 | 'name' => 'Foo Bar', |
||
| 34 | 'referred_by_user_id' => 1, |
||
| 35 | 'referred_by_organization_id' => \MaksimM\CompositePrimaryKeys\Tests\Stubs\TestOrganization::whereName('Foo') |
||
| 36 | ->first() |
||
| 37 | ->organization_id, |
||
| 38 | ]); |
||
| 41 |