@@ -7,8 +7,8 @@ discard block |
||
7 | 7 | public function testFindAll() |
8 | 8 | { |
9 | 9 | $entity = $this->getService() |
10 | - ->store($this->getRepositoryTest()->getMockArray()) |
|
11 | - ->flush(); |
|
10 | + ->store($this->getRepositoryTest()->getMockArray()) |
|
11 | + ->flush(); |
|
12 | 12 | |
13 | 13 | $findAll = $this->getService()->findAll()->getResult(); |
14 | 14 | |
@@ -19,8 +19,8 @@ discard block |
||
19 | 19 | public function testFind() |
20 | 20 | { |
21 | 21 | $entity = $this->getService() |
22 | - ->store($this->getRepositoryTest()->getMockArray()) |
|
23 | - ->flush(); |
|
22 | + ->store($this->getRepositoryTest()->getMockArray()) |
|
23 | + ->flush(); |
|
24 | 24 | |
25 | 25 | $find = $this->getService()->find($entity->getId()); |
26 | 26 |
@@ -10,12 +10,12 @@ |
||
10 | 10 | public function testRemove() |
11 | 11 | { |
12 | 12 | $entity = $this->getService() |
13 | - ->store($this->getRepositoryTest()->getMockArray()) |
|
14 | - ->flush(); |
|
13 | + ->store($this->getRepositoryTest()->getMockArray()) |
|
14 | + ->flush(); |
|
15 | 15 | |
16 | 16 | $this->getService() |
17 | - ->remove($entity->getId()) |
|
18 | - ->flush(); |
|
17 | + ->remove($entity->getId()) |
|
18 | + ->flush(); |
|
19 | 19 | |
20 | 20 | $find = $this->getService()->getMainRepository()->find($entity->getId()); |
21 | 21 | } |
@@ -18,8 +18,8 @@ |
||
18 | 18 | } |
19 | 19 | |
20 | 20 | $entity = $this->getService() |
21 | - ->update($flushedMockArray['id'], $flushedMockArray) |
|
22 | - ->flush(); |
|
21 | + ->update($flushedMockArray['id'], $flushedMockArray) |
|
22 | + ->flush(); |
|
23 | 23 | |
24 | 24 | $repository = $this->getService()->getMainRepository(); |
25 | 25 |
@@ -7,11 +7,11 @@ |
||
7 | 7 | public function testStore() |
8 | 8 | { |
9 | 9 | $entity = $this->getService() |
10 | - ->store($this->getRepositoryTest()->getMockArray()) |
|
11 | - ->flush(); |
|
10 | + ->store($this->getRepositoryTest()->getMockArray()) |
|
11 | + ->flush(); |
|
12 | 12 | |
13 | 13 | $repository = $this->getService() |
14 | - ->getMainRepository(); |
|
14 | + ->getMainRepository(); |
|
15 | 15 | |
16 | 16 | $find = $repository->find($entity->getId()); |
17 | 17 |
@@ -9,10 +9,10 @@ |
||
9 | 9 | $entity = $this->getServiceTest()->getRepositoryTest()->getFlushedMockObject(); |
10 | 10 | |
11 | 11 | $response = $this->curlHelper |
12 | - ->setPosFixUrl('/'.$entity->getId()) |
|
13 | - ->delete() |
|
14 | - ->send() |
|
15 | - ->getResponse(); |
|
12 | + ->setPosFixUrl('/'.$entity->getId()) |
|
13 | + ->delete() |
|
14 | + ->send() |
|
15 | + ->getResponse(); |
|
16 | 16 | |
17 | 17 | $this->assertEquals(200, $response['code']); |
18 | 18 |
@@ -18,10 +18,10 @@ |
||
18 | 18 | } |
19 | 19 | |
20 | 20 | $response = $this->curlHelper |
21 | - ->setPosFixUrl('/'.$flushedMockArray['id']) |
|
22 | - ->put($flushedMockArray) |
|
23 | - ->send() |
|
24 | - ->getResponse(); |
|
21 | + ->setPosFixUrl('/'.$flushedMockArray['id']) |
|
22 | + ->put($flushedMockArray) |
|
23 | + ->send() |
|
24 | + ->getResponse(); |
|
25 | 25 | |
26 | 26 | $this->assertEquals(200, $response['code']); |
27 | 27 |
@@ -7,11 +7,11 @@ |
||
7 | 7 | public function testStore() |
8 | 8 | { |
9 | 9 | $response = $this->curlHelper |
10 | - ->post( |
|
10 | + ->post( |
|
11 | 11 | $this->getServiceTest()->getRepositoryTest()->getMockArray() |
12 | - ) |
|
13 | - ->send() |
|
14 | - ->getResponse(); |
|
12 | + ) |
|
13 | + ->send() |
|
14 | + ->getResponse(); |
|
15 | 15 | |
16 | 16 | $this->assertEquals(200, $response['code']); |
17 | 17 |
@@ -13,8 +13,8 @@ discard block |
||
13 | 13 | { |
14 | 14 | return response()->json( |
15 | 15 | $this->mainService |
16 | - ->findAll($this->translateFilters($request)) |
|
17 | - ->toArray($this->optionsToArrayIndex) |
|
16 | + ->findAll($this->translateFilters($request)) |
|
17 | + ->toArray($this->optionsToArrayIndex) |
|
18 | 18 | ); |
19 | 19 | } |
20 | 20 | |
@@ -22,8 +22,8 @@ discard block |
||
22 | 22 | { |
23 | 23 | return response()->json( |
24 | 24 | $this->mainService |
25 | - ->find($id) |
|
26 | - ->toArray($this->optionsToArrayShow) |
|
25 | + ->find($id) |
|
26 | + ->toArray($this->optionsToArrayShow) |
|
27 | 27 | ); |
28 | 28 | } |
29 | 29 | } |
@@ -9,8 +9,8 @@ |
||
9 | 9 | public function destroy($id) |
10 | 10 | { |
11 | 11 | $entity = $this->mainService |
12 | - ->remove($id) |
|
13 | - ->flush(); |
|
12 | + ->remove($id) |
|
13 | + ->flush(); |
|
14 | 14 | |
15 | 15 | return response()->json($entity->toArray($this->optionsToArrayDestroy)); |
16 | 16 | } |