Ejemplo n.º 1
0
 /**
  * @test
  */
 public function it_deletes_a_country()
 {
     $wps = new Sdk();
     $wps->addMockResults([new Response(200, [], json_encode($wps->countryResponse(3))), new Response(204, [])]);
     $country = $wps->country()->find(3);
     $success = $country->delete();
     $this->assertEquals(['/countries/3/', '/countries/3/'], $wps->getRequestUris());
     $this->assertEquals(true, $success);
 }