@@ 44-54 (lines=11) @@ | ||
41 | * |
|
42 | * @small |
|
43 | */ |
|
44 | public function executeQuery() |
|
45 | { |
|
46 | $query = 'some query'; |
|
47 | $bindingsList = ['a', 'B', 'C']; |
|
48 | $this->rawClientMock->shouldReceive('executeQuery') |
|
49 | ->once() |
|
50 | ->with($query, $bindingsList) |
|
51 | ->andReturn([]); |
|
52 | ||
53 | $this->adapter->executeQuery($query, $bindingsList); |
|
54 | } |
|
55 | ||
56 | /** |
|
57 | * @test |
|
@@ 61-70 (lines=10) @@ | ||
58 | * |
|
59 | * @small |
|
60 | */ |
|
61 | public function create() |
|
62 | { |
|
63 | $table = 'some table'; |
|
64 | $data = ['a', 'B', 'C']; |
|
65 | $this->crudClientMock->shouldReceive('create') |
|
66 | ->once() |
|
67 | ->with($table, $data); |
|
68 | ||
69 | $this->adapter->create($table, $data); |
|
70 | } |
|
71 | ||
72 | /** |
|
73 | * @test |