Exemple #1
0
 /**
  * @test
  */
 public function it_deletes_a_block()
 {
     $wps = new Sdk();
     $wps->addMockResults([new Response(200, [], json_encode($wps->blockResponse(3))), new Response(204, [])]);
     $block = $wps->block()->find(3);
     $success = $block->delete();
     $this->assertEquals(['/blocks/3/', '/blocks/3/'], $wps->getRequestUris());
     $this->assertEquals(true, $success);
 }