equal
deleted
inserted
replaced
154 |
154 |
155 public function testSave() { |
155 public function testSave() { |
156 |
156 |
157 $sparqlClientMock = m::mock('CorpusParole\Libraries\Sparql\SparqlClient', function($mock) { |
157 $sparqlClientMock = m::mock('CorpusParole\Libraries\Sparql\SparqlClient', function($mock) { |
158 $mock->shouldReceive('startTransaction')->andReturn(true) |
158 $mock->shouldReceive('startTransaction')->andReturn(true) |
|
159 ->shouldReceive('deleteWhere') |
159 ->shouldReceive('delete')->shouldReceive('add') |
160 ->shouldReceive('delete')->shouldReceive('add') |
160 ->shouldReceive('commit')->andReturn(true); |
161 ->shouldReceive('commit')->andReturn(true); |
161 }); |
162 }); |
162 $documentRepository = $this->app->make('CorpusParole\Repositories\RdfDocumentRepository', [$sparqlClientMock]); |
163 $documentRepository = $this->app->make('CorpusParole\Repositories\RdfDocumentRepository', [$sparqlClientMock]); |
163 |
164 |