/** * test creation of snom software * */ public function testCreateSnomSoftware() { $test = $this->_getSnomSoftware(); $returned = $this->_json->saveSnomSoftware($test->toArray()); $this->assertEquals($test['name'], $returned['name']); $this->assertEquals($test['description'], $returned['description']); $this->assertNotNull($returned['id']); // test getSnomSoftware as well $returnedGet = $this->_json->getSnomSoftware($returned['id']); $this->assertEquals($test['name'], $returnedGet['name']); $this->assertEquals($test['description'], $returnedGet['description']); }