public function testCreate() { $this->request->expects($this->once())->method('request')->with('sites/abc/environments/dev/hostnames/dev.example.com', ['method' => 'put']); $this->domains->create('dev.example.com'); }