public function testDeleteById() { $at = getenv("BB_ACCESS_TOKEN"); $accountNatures = AccountNature::getAll($at); $accountNature = $accountNatures[0]; $object = new AccountGroup($at, 'newAccountGroupName', $accountNature->id); $object->save(); AccountGroup::_deleteById($at, $object->id); }
/** * @depends testGetAll */ public function testGetById($objects) { $at = getenv("BB_ACCESS_TOKEN"); $object = AccountNature::getById($at, $objects[0]->id); $this->assertInstanceOf('\\ClausConrad\\BillysBilling\\AccountNature', $object, 'Getting object by ID returns the correct type.'); }