/** * Checks that the attributes of the activity object and the database row match. * * @param ProjectActivity $activity * @param array $row */ private function _checkRow($activity, $row) { $this->assertEquals($activity->getName(), $row['name'], "Activity name not correct"); $this->assertEquals($activity->getProjectId(), $row['project_id'], "Project id wrong"); $this->assertEquals($activity->getId(), $row['activity_id'], "Activity id wrong"); $this->assertEquals($activity->isDeleted(), (bool) $row['deleted'], "Deleted value wrong"); }