public function testCreatePassesThroughToConnection() { $category = new Category(); $this->connection->expects($this->once())->method('post')->with($this->basePath . '/categories', $category->getCreateFields()); $category->create(); }