/**
  * @test
  * @todo: Test with alias
  */
 public function updateQuotesIdentifierAndDelegatesToConcreteQueryBuilder()
 {
     $this->connection->quoteIdentifier('aTable')->shouldBeCalled()->willReturnArgument(0);
     $this->concreteQueryBuilder->update(Argument::exact('aTable'), Argument::cetera())->shouldBeCalled()->willReturn($this->subject);
     $this->subject->update('aTable');
 }
Example #2
0
 /**
  * @test
  */
 public function updates()
 {
     $file = File::create();
     $this->repo->update($file)->shouldBeCalled()->willReturn('jippikaijea');
     $ret = $this->filelib->getFileRepository()->update($file);
     $this->assertEquals('jippikaijea', $ret);
 }
 public function testPutUpdate()
 {
     $path = 'path.txt';
     $contents = 'contents';
     $this->prophecy->has($path)->willReturn(true);
     $this->prophecy->update($path, $contents, $this->config)->willReturn(compact('path', 'contents'));
     $this->assertTrue($this->filesystem->put($path, $contents));
 }