public function testDelete() { $this->mockRequest('DELETE', MockResource::url() . '/1'); MockResource::delete('1'); }
/** * testPath method * * @return void */ public function testPath() { $client = $this->getMockBuilder('Att\\M2X\\M2X'); $data = array('id' => '150034', 'name' => 'Original Name', 'description' => 'Original Description', 'foo' => 'abc123', 'bar' => 10005); $resource = new MockResource($client, $data); $this->assertEquals('/foo/150034', $resource->path()); }