Anonymous avatar Anonymous committed 7878e5c

Removed the running print

Comments (0)

Files changed (34)

tests/application/modules/financial/models/Financial_Model_RefundTest.php

 
     public function testGetBillId()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
 	$bill = 1;
         $this->object->setBillId( $bill );
         $this->assertEquals( $bill,$this->object->getBillId());
 
     public function testGetFeeId()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
 	$fee = 4;
         $this->object->setFeeId( $fee );
         $this->assertEquals( $fee, $this->object->getFeeId());	
 
     public function testGetRefundAmount()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
 	$amount = 10;
         $this->object->setAmount( $amount );
         $this->assertEquals( $amount,$this->object->getAmount());
     
     public function testComment()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
 	$comment = 'blah';
         $this->object->setComment( $comment );
         $this->assertEquals( $comment, $this->object->getComment());	
      */
     public function testRefundNonRefundableFee()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setBillId( 6 );
 	$this->object->setFeeId( 6 );  // non refundable fee
         $this->object->setAmount( 10 );
      */
     public function testRefundGreaterAmount()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setBillId( 7 );
 	$this->object->setFeeId( 7 );
         $this->object->setAmount( 100 );  // refund amount > payment on this bill
      */
     public function testAlreadyRefunded()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setBillId( 8 );
 	$this->object->setFeeId( 8 );
         $this->object->setAmount( 10 );  // sum of refunds already = amount paid on bill so should return false
      */
     public function testRefundExistsGreaterAmount()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setBillId( 10 );
 	$this->object->setFeeId( 10 );
         $this->object->setAmount( 30 );  // refund amount > payment on this bill
     
     public function testRefundPass()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setBillId( 9 );
 	$this->object->setFeeId( 9 );
         $this->object->setAmount( 3 );
     
     public function testRefundPassAccountTransaction()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setBillId( 11 );
 	$this->object->setFeeId( 11 );
         $this->object->setAmount( 3 );

tests/application/modules/financial/models/Financial_Model_TransactionTest.php

 
 	public function testGetUserId()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object = new Financial_Model_Transaction();
 		$this->object->setUserId( 1 );
 		$this->assertEquals( 1, $this->object->getUserId());
 
 	public function testGetComment()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object = new Financial_Model_Transaction();
 		$this->object->setComment( 'test' );
 		$this->assertEquals( 'test', $this->object->getComment());
 
 	public function testGetAction()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object = new Financial_Model_Transaction();
 		$this->object->setAction( 'action' );
 		$this->assertEquals( 'action', $this->object->getAction());

tests/application/modules/maintenance/models/Maintenance_Model_MaintenanceRequestAssignedStatusTest.php

 	}
 	public function testGetMaintenanceRequestId()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setMaintenanceRequestId(1);
 		$this->assertEquals(1,$this->object->getMaintenanceRequestId());
 	}
 
 	public function testGetMaintenanceStatusId()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setMaintenanceStatusId(1);
 		$this->assertEquals(1,$this->object->getMaintenanceStatusId());
 	}
 
 	public function testGetUserId()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setUserId(1);
 		$this->assertEquals(1,$this->object->getUserId());
 	}
 
 	public function testGetAssignedTo()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setAssignedTo(1);
 		$this->assertEquals(1,$this->object->getAssignedTo());
 	}
 
 	public function testGetCurrentStatus()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setCurrentStatus(1);
 		$this->assertEquals(1,$this->object->getCurrentStatus());
 	}
 	 */
 	public function testSaveRecord()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		
 		$this->object->setUserId(1);
 		$this->object->setMaintenanceRequestId(1);

tests/application/modules/maintenance/models/Maintenance_Model_MaintenanceRequestCommentTest.php

     }
      public function testGetMaintenanceRequestId()
      {
-     	echo "Running ".__FUNCTION__.PHP_EOL;
+     	
         $this->object->setMaintenanceRequestId(1);
         $this->assertEquals(1,$this->object->getMaintenanceRequestId());
     }
 
     public function testGetUserId()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setUserId(1);
         $this->assertEquals(1,$this->object->getUserId());
     }
 
     public function testGetComment()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setComment('test');
         $this->assertEquals('test',$this->object->getComment());
     }
 
     public function testFetchRequestComment()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setMaintenanceRequestId(1);
         $results = $this->object->fetchRequestComment();
         $this->assertEquals(1, count($results));

tests/application/modules/maintenance/models/Maintenance_Model_MaintenanceRequestTest.php

 
     public function testGetUnitId()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setUnitId(1);
         $this->assertEquals(1,$this->object->getUnitId());
     }
 
     public function testGetRequestorId()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setRequestorId(1);
         $this->assertEquals(1,$this->object->getRequestorId());
     }
 
     public function testGetTitle()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setTitle(1);
         $this->assertEquals(1,$this->object->getTitle());
     }
 
     public function testGetDescription()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setDescription(1);
         $this->assertEquals(1,$this->object->getDescription());
     }
 
     public function testGetPermissionToEnter()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setPermissionToEnter(1);
         $this->assertEquals(1,$this->object->getPermissionToEnter());
     }
 
     public function testGetMineOnly()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setMineOnly(1);
         $this->assertEquals(1,$this->object->getMineOnly());
     }
      */
     public function testFetchRequestMine()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setId(1);
         $this->object->setRequestorId(1);
         $this->object->setUserId(1);

tests/application/modules/maintenance/models/Maintenance_Model_MaintenanceSettingsTest.php

 
     public function testGetRoleId()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setRoleId(1);
         $this->assertEquals(1,$this->object->getRoleId());
     }
 
     public function testGetDefaultAssignedTo()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setDefaultAssignedTo(2);
         $this->assertEquals(2,$this->object->getDefaultAssignedTo());
     }
 
     public function testGetSetting()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $setting = $this->object->getSetting();
         $this->assertEquals(2,$setting->getDefaultAssignedTo());
     }

tests/application/modules/maintenance/models/Maintenance_Model_MaintenanceStatusTest.php

 
     public function testGetStatus()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setStatus('test');
         $this->assertEquals('test',$this->object->getStatus());
     }
 
     public function testGetStatusIdByName()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setStatus('test');
         $id = $this->object->save();
         $result = $this->object->getStatusIdByName('test');

tests/application/modules/messages/models/Messages_Model_MessagesTest.php

 
 	public function testFetchAll()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$messages = new Messages_Model_Messages();
 		$result = $messages->fetchAll();
 		$this->assertGreaterThan(1,$result,'We expected a default amount of messages');
 
 	public function testFetchAllWillReturnEmptyArray()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$stubMessage = $this->getMock('Messages_Model_Messages');
 		$stubMessage->expects($this->any())
 		->method('fetchAll')
 	 */
 	public function testSaveWillFailWithNoMessage()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$message = new Messages_Model_Messages();
 		$message->setIdentifier('doop');
 		$message->setCategory('error');
 	 */
 	public function testSaveWillFailWithNoIdentifier()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$message = new Messages_Model_Messages();
 		$message->setCategory('error');
 		$message->setLanguage('es');
 	 */
 	public function testSaveWillFailWithNoCategory()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$message = new Messages_Model_Messages();
 		$message->setLanguage('es');
 		$result = $message->save();
 
 	public function testSaveWillPass()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$message = new Messages_Model_Messages();
 		$message->setIdentifier('doop');
 		$message->setCategory('error');
 
 	public function testUpdateWillPass()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$message = new Messages_Model_Messages();
 		$message->setIdentifier('doop');
 		$message->setCategory('error');
 
 	public function testSetLockedWillReturnLocked()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$message = new Messages_Model_Messages();
 		$message->setIdentifier('doop');
 		$message->setCategory('error');
 
 	public function testDeleteMessageWillPass()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$message = new Messages_Model_Messages();
 		$message->setIdentifier('doop');
 		$message->setCategory('error');
 
 	public function testDeleteFakeMessageWillReturnFalse()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$message = new Messages_Model_Messages();
 		$content = $message->delete(null);
 		$this->assertTrue($content==false);
 
 	public function testDeleteProtectedMessageWillFail()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$message = new Messages_Model_Messages();
 		$message->setIdentifier('doop');
 		$message->setCategory('error');

tests/application/modules/permission/models/Permission_Model_PermissionTest.php

 
 	public function testFetchControllersByModuleId()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setModuleId(2);  // calendar
 		$result = $this->object->fetchControllersByModuleId();
 		$this->assertEquals(5,count($result));
 
 	public function testFetchActionsByControllerModule()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setModuleId(2);  // calendar
 		$this->object->setControllerId(1);
 		$result = $this->object->fetchActionsByControllerModule();

tests/application/modules/role/models/Role_Model_RoleAclModelTest.php

 
     public function testAssembleForm()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
 		$pages = array(
 						array (
             					'pageId' => 1,

tests/application/modules/role/models/Role_Model_RolePermissionsTest.php

 
 	public function testFetchRoleByPermissionId()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$rolePermission = new Role_Model_RolePermissions();
 		$rolePermission->setPermissionId(1);
 		$result = $rolePermission->fetchRoleByPermissionId();
 
 	public function testSaveWillPass()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$data = array('roleId'=>2,'permissionId'=>1);
 		$rolePermission = new Role_Model_RolePermissions($data);
 		$saved = $rolePermission->save();
 
 	public function testSaveWillFailOnDuplicateRecord()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$data = array('roleId'=>2,'permissionId'=>1);
 		$rolePermission = new Role_Model_RolePermissions($data);
 		$saved = $rolePermission->save();
 
 	public function testDeleteWillPass()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$data = array('roleId'=>2,'permissionId'=>1);
 		$rolePermission = new Role_Model_RolePermissions($data);
 		$saved = $rolePermission->save();
 
 	public function testFechAllRoleAccess()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$data = array('roleId'=>1,'permissionId'=>1);
 		$rolePermission = new Role_Model_RolePermissions($data);
 		$saved = $rolePermission->save();

tests/application/modules/role/models/Role_Model_RoleTest.php

 
     public function testInstantiateWithParametersWillReturnSameResults()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $data = array('id'=>1,'name'=>'specialadmin','protected'=>1,'dateCreated'=>$this->curdate,'dateUpdated'=>$this->curdate );
         $role = new Role_Model_Role($data);
         $this->assertEquals($role->getId(),$data['id']);
      */
     public function testFecthAllWillReturnBasicRoles()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->assertTrue(count($this->role->fetchAll())>3,'We expected three roles, we have ('.count($this->role->fetchAll()).')');
         $stub = $this->getMock('Role_Model_Role',array('fetchAll'));
     }
 
     public function testSaveWillReturnNotFalse()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $data = array('name'=>'specialadmin','protected'=>0);
         $role = new Role_Model_Role($data);
         $result = $role->save();
 
     public function testSaveUpdateWillReturnTrue()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $data = array('name'=>'specialadmin','protected'=>0);
         $role = new Role_Model_Role($data);
         $id = $role->save();
 
     public function testfindByIdWillReturnNull()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $role = $this->role->findById('a');
         $this->assertNull($role,'We expected a false result');
     }
 
     public function testDeleteProctedRoleWillReturnFalse()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         //$result = $this->role->delete(1);
         $data = array('name'=>'specialadmin','protected'=>1);
         $role = new Role_Model_Role($data);
 
     public function testDeleteUnprotectedRoleWillReturnTrue()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $data = array('name'=>'specialadmin','protected'=>0);
         $role = new Role_Model_Role($data);
         $this->assertTrue($role->getProtected()==0,'The setter failed');

tests/application/modules/settings/models/Settings_Model_SettingsTest.php

 
     public function testSetName()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
     	$this->object->setName("testSetting");
     	$this->assertEquals("testSetting", $this->object->getName());
     }
 
     public function testGetName()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
     	$this->object->setName("testSetting");
     	$this->assertEquals("testSetting", $this->object->getName());
     }
 
     public function testSetValue()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setValue(1);
         $this->assertEquals(1,$this->object->getValue());
     }
 
     public function testGetValue()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setValue(1);
         $this->assertEquals(1,$this->object->getValue());
     }
 
     public function testSetDescription()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
     	$this->object->setDescription("This is a description of a setting");
     	$this->assertEquals("This is a description of a setting",$this->object->getDescription());
     }
 
     public function testGetDescription()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setDescription("This is a description of a setting");
     	$this->assertEquals("This is a description of a setting",$this->object->getDescription());
     }

tests/application/modules/unit/library/Unit_Library_LeaseWizardHelperTest.php

 	/*
 	public function testGetBillSum()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$billArray = array( 0=>array('billId'=>20,
 					     'currentAmountDue'=>100),
 				    1=>array('billId'=>20,
 	/*
 	public function testPayBills()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$paymentInfo = array( 'paymentType'=>'cash', 'totalAmount'=>20.00, 'payor'=>'me' );
 		$rentBills = array( 0=>array('billId'=>24, 'currentAmountDue'=>10, 'debitAccountId'=>1));
 		$leaseFeesBills = array(0=>array( 'billId'=>25, 'currentAmountDue'=>10, 'debitAccountId'=>1));						
 	/*
 	public function testFetchLeaseFeesToPay()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$leaseId = 11; 
 		$fees = $this->object->fetchLeaseFeesToPay( $leaseId );		
 		$this->assertEquals( 1, count($fees) );		
 	/*
 	public function testFetchLeaseRentToPay()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$leaseId = 11; 
 		$fees = $this->object->fetchLeaseRentToPay( $leaseId );		
 		$this->assertEquals( 1, count($fees) );		

tests/application/modules/unit/library/Unit_Library_ManualBillHelperTest.php

 	 */	
 	public function testGetBillSum()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$billArray = array( 0=>array('billId'=>20,
 					     'currentAmountDue'=>100),
 				    1=>array('billId'=>20,
 	 */	
 	public function testPayBills()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$paymentInfo = array( 'paymentType'=>'cash', 'totalAmount'=>20.00, 'payor'=>'me' );
 		$rentBills = array( 0=>array('billId'=>24, 'currentAmountDue'=>10, 'debitAccountId'=>1));
 		$leaseFeesBills = array(0=>array( 'billId'=>25, 'currentAmountDue'=>10, 'debitAccountId'=>1));						
 	 */	
 	public function testFetchLeaseFeesToPay()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$leaseId = 11; 
 		$fees = $this->object->fetchLeaseFeesToPay( $leaseId );		
 		$this->assertEquals( 1, count($fees) );		
 	 */	
 	public function testFetchLeaseRentToPay()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$leaseId = 11; 
 		$fees = $this->object->fetchLeaseRentToPay( $leaseId );		
 		$this->assertEquals( 1, count($fees) );		

tests/application/modules/unit/library/Unit_Library_SearchHelperTest.php

 	public function testSearchWithNoArgsReturnsResult()
 	{
 		$args = array('size'=>'175-g','beds'=>'any','baths'=>'any','floors'=>'any');
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$result = $this->object->searchUnit($args);
 		$this->assertTrue(is_array($result),'We expected an array');
 		$this->assertGreaterThanOrEqual(1, count($result),'We should have at least one result');

tests/application/modules/unit/models/Unit_Model_AmenityTest.php

 
     public function testGetName()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setName('test');
         $this->assertEquals('test',$this->object->getName());
     }
     // tests saving non duplicate
     public function testSaveAmenity()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setName('test');
  	$id = $this->object->saveAmenity(); // save amenity and return the id
         $this->assertNotEquals(false,$id);
     // tests saving duplicate
     public function testSaveAmenityDuplicate()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
 	$this->db->query('DELETE FROM amenity');
 	
 	$this->object->setName('test');

tests/application/modules/unit/models/Unit_Model_ApartmentTest.php

 
     public function testGetName()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $name = 'test';
         $this->object->setName($name);
         $this->assertSame($name,$this->object->getName());
 
     public function testGetAddressOne()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $addressOne = 'addressOne';
         $this->object->setAddressOne($addressOne);
         $this->assertEquals($addressOne,$this->object->getAddressOne());
 
     public function testGetAddressTwo()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $addressTwo = 'addressTwo';
         $this->object->setAddressTwo($addressTwo);
         $this->assertEquals($addressTwo,$this->object->getAddressTwo());
 
     public function testGetCity()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $city = 'city';
         $this->object->setCity($city);
         $this->assertEquals($city,$this->object->getCity());
 
     public function testGetState()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $state = 'state';
         $this->object->setState($state);
         $this->assertEquals($state,$this->object->getState());
 
     public function testGetZip()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $zip = 12345;
         $this->object->setZip($zip);
         $this->assertEquals($zip,$this->object->getZip());
 
     public function testGetCountry()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $country = 'usa';
         $this->object->setCountry($country);
         $this->assertEquals($country,$this->object->getCountry());
 
     public function testGetPhone()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $phone = '555-555-5555';
         $this->object->setPhone($phone);
         $this->assertEquals($phone,$this->object->getPhone());
 
     public function testApartmentSaveNone()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->db->query('TRUNCATE apartment');
 
         $this->object->setName('test');
 
     public function testApartmentSaveExisting()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setName('test2');
         $this->object->setAddressOne('test2');
         $this->object->setAddressTwo('test2');

tests/application/modules/unit/models/Unit_Model_CreateModelRentScheduleTest.php

 	 */
 	public function testSaveRentSchedule()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;	
+			
 		$this->object->setEffectiveDate( '2010-01-01' );
 		$this->object->setUnitModelId( 1 );
 		$this->object->setRentAmount( array( '0'=>'200', '1'=>'500', '2'=>'800' ) );

tests/application/modules/unit/models/Unit_Model_LeaseScheduleTest.php

 
     public function testGetLeaseId()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setLeaseId(1);
         $this->assertEquals(1,$this->object->getLeaseId());
     }
 
     public function testGetBillId()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setBillId(1);
         $this->assertEquals(1,$this->object->getBillId());
     }
 
     public function testGetMonth()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setMonth('2010-05-01');
         $this->assertEquals('2010-05-01',$this->object->getMonth());
     }
 
     public function testGetDiscount()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setDiscount(10);
         $this->assertEquals(10,$this->object->getDiscount());
     }

tests/application/modules/unit/models/Unit_Model_LeaseTest.php

 
 	public function testGetLeaseStartDate()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setLeaseStartDate('2010-05-01');
 		$this->assertEquals('2010-05-01',$this->object->getLeaseStartDate());
 	}
 
 	public function testGetLeaseEndDate()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setLeaseEndDate('2010-05-01');
 		$this->assertEquals('2010-05-01',$this->object->getLeaseEndDate());
 	}
 
 	public function testGetLastDay()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setLastDay('2010-05-01');
 		$this->assertEquals('2010-05-01',$this->object->getLastDay());
 	}
 
 	public function testGetUnitId()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setUnitId(1);
 		$this->assertEquals(1,$this->object->getUnitId());
 	}
 
 	public function testGetApartmentId()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setApartmentId(1);
 		$this->assertEquals(1,$this->object->getApartmentId());
 	}
 
 	public function testGetModelRentScheduleId()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setModelRentScheduleId(1);
 		$this->assertEquals(1,$this->object->getModelRentScheduleId());
 	}
 
 	public function testGetModelRentScheduleItemId()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setModelRentScheduleItemId(1);
 		$this->assertEquals(1,$this->object->getModelRentScheduleItemId());
 	}
 
 	public function testGetUserId()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setUserId(1);
 		$this->assertEquals(1,$this->object->getUserId());
 	}
 
 	public function testGetIsCancelled()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setIsCancelled(1);
 		$this->assertEquals(1,$this->object->getIsCancelled());
 	}
 
 	public function testGetCancellationDate()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setCancellationDate('2010-05-01');
 		$this->assertEquals('2010-05-01',$this->object->getCancellationDate());
 	}
 
 	public function testFetchCurrentPendingLeases()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 
 		// in the data file 1 row should appear
 		$this->object->setUnitId( 1 );
 
 	public function testFetchLeaseHistory()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 
 		// in the data file 1 row should not appear
 		$this->object->setUnitId( 1 );
 
 	public function testCancelLease()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 
 		$this->object->setId( 6 );
 		$result = $this->object->cancelLease();

tests/application/modules/unit/models/Unit_Model_LeaseWizardTest.php

 
     public function testGetOriginalAmountDue()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
          //$this->assertEquals(1,0);
 	 $this->markTestIncomplete(
                     'This test has not been implemented yet.'

tests/application/modules/unit/models/Unit_Model_ModelRentScheduleItemTest.php

 
     public function testGetModelRentScheduleId()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setModelRentScheduleId(1);
         $this->assertEquals(1,$this->object->getModelRentScheduleId());
     }
 
     public function testGetRentAmount()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setRentAmount(123);
         $this->assertEquals(123,$this->object->getRentAmount());
     }
 
     public function testGetNumMonths()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setNumMonths(1);
         $this->assertEquals(1,$this->object->getNumMonths());
     }

tests/application/modules/unit/models/Unit_Model_ModelRentScheduleTest.php

 
     public function testGetUnitModelId()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setUnitModelId(1);
         $this->assertEquals(1,$this->object->getUnitModelId());
     }
 
     public function testGetEffectiveDate()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setEffectiveDate('2010-05-01');
         $this->assertEquals('2010-05-01',$this->object->getEffectiveDate());
     }
     // test various possibilities
     public function testGetLatestScheduleNoDate()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;       
+    	       
         $this->object->setUnitModelId( 1 );
         $result = $this->object->getLatestSchedule();
         $this->assertEquals(1,count($result));
     // test various possibilities
     public function testGetLatestScheduleWithDate()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;       
+    	       
         $this->object->setUnitModelId( 1 );
         $this->object->setEffectiveDate( '2005-01-01' );
         $result = $this->object->getLatestSchedule();
 
     public function testGetSchedule()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;        
+    	        
         $this->object->setId( 1 );
         $result = $this->object->getSchedule();
         $this->assertEquals(1,count($result));

tests/application/modules/unit/models/Unit_Model_ProrationTest.php

 
 	public function testGetMoveInDate()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setBaseRentAmount( 500 );
 		$this->object->setMoveInDate( date('2010-05-01') );
 
 	 */
 	public function testCalculateRentProrationThirtyDay()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setBaseRentAmount( 500 );
 		$this->object->setMoveInDate( '2010-05-02' );
 		$this->object->getRentSettings()->setProrationType('thirtyday');
 
 	public function testCalculateRentProrationActual()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setBaseRentAmount( 500 );
 		$this->object->setMoveInDate( '2010-07-02' );
 		$this->object->getRentSettings()->setProrationType('actual');
 
 	public function testCalculateRentProrationYear()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setBaseRentAmount( 500 );
 		$this->object->setMoveInDate( '2010-09-02' );
 		$this->object->getRentSettings()->setProrationType('year');
 
 	public function testCalculateRentProrationLeapYear()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setBaseRentAmount( 500 );
 		$this->object->setMoveInDate( '2012-09-02' );
 		$this->object->getRentSettings()->setProrationType('year');
 
 	public function testGetAmountDue_ProrationDisabled()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setBaseRentAmount( 500 );
 		$this->object->setMoveInDate( '2010-05-02' );
 		$this->object->getRentSettings()->setProrationType('thirtyday');
 
 	public function testGetAmountDue_RentDueDayEqual()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setBaseRentAmount( 500 );
 		$this->object->setMoveInDate( '2010-05-01' );
 		$this->object->getRentSettings()->setProrationType('thirtyday');
 
 	public function testGetAmountDue_MonthSequenceThree()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setBaseRentAmount( 500 );
 		$this->object->setMoveInDate( '2010-05-02' );
 		$this->object->getRentSettings()->setProrationType('thirtyday');
 	 */
 	public function testGetAmountDue_ProrationEnabled()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setBaseRentAmount( 500 );
 		$this->object->setMoveInDate( '2010-05-02' );
 		$this->object->getRentSettings()->setProrationType('thirtyday');

tests/application/modules/unit/models/Unit_Model_RentSettingsTest.php

 
     public function testGetProrationEnabled()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setProrationEnabled(1);
         $this->assertEquals(1,$this->object->getProrationEnabled());
     }
 
     public function testGetProrationType()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setProrationType('thirtyday');
         $this->assertEquals('thirtyday',$this->object->getProrationType());
     }
 
     public function testGetProrationApplyMonth()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setProrationApplyMonth(1);
         $this->assertEquals(1,$this->object->getProrationApplyMonth());
     }
 
     public function testGetSecondMonthDue()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setSecondMonthDue(1);
         $this->assertEquals(1,$this->object->getSecondMonthDue());
     }

tests/application/modules/unit/models/Unit_Model_TenantTest.php

 
     public function testGetUserId()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setUserId(1);
         $this->assertEquals(1,$this->object->getUserId());
     }
 
     public function testGetLeaseId()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $this->object->setLeaseId(1);
         $this->assertEquals(1,$this->object->getLeaseId());
     }
     // Need data set
     public function testGetTenants()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;       
+    	       
         $this->object->setLeaseId( 10 );
         $results = $this->object->getTenants();
         $this->assertEquals(2,count($results));

tests/application/modules/unit/models/Unit_Model_UnitMetadataTest.php

 	public function testSetUnitId()
 	{
 		$this->markTestSkipped("The object on this tests doesn't exists no more");
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->assertEquals(1, $this->object->getUnitId());
 	}
 

tests/application/modules/unit/models/Unit_Model_UnitModelAmenityTest.php

 
 	public function testGetUnitModelId()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setUnitModelId(1);
 		$this->assertEquals(1,$this->object->getUnitModelId());
 	}
 
 	public function testGetAmenityId()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setAmenityId(1);
 		$this->assertEquals(1,$this->object->getAmenityId());
 	}
 
 	public function testSaveAndGetAmenities()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;		
+				
 
 		$amenities = array( '0'=>'3', '1'=>'4' );
 		$this->object->setUnitModelId( 1 );

tests/application/modules/unit/models/Unit_Model_UnitModelTest.php

 
 	public function testGetName()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setName('test');
 		$this->assertEquals('test',$this->object->getName());
 	}
 
 	public function testGetSize()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setSize(1000);
 		$this->assertEquals(1000,$this->object->getSize());
 	}
 
 	public function testGetNumBeds()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setNumBeds(2);
 		$this->assertEquals(2,$this->object->getNumBeds());
 	}
 
 	public function testGetNumBaths()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setNumBaths(2.5);
 		$this->assertEquals(2.5,$this->object->getNumBaths());
 	}
 
 	public function testGetNumFloors()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setNumFloors(1);
 		$this->assertEquals(1,$this->object->getNumFloors());
 	}
 
 	public function testSaveUnitModel()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		
 
 		$this->object->setName('test2');

tests/application/modules/unit/models/Unit_Model_UnitTest.php

 
 	public function testGetApartment()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setApartment('test');
 		$this->assertEquals('test',$this->object->getApartment());
 	}
 
 	public function testGetApartmentId()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setApartmentId(1);
 		$this->assertEquals(1,$this->object->getApartmentId());
 	}
 
 	public function testGetNumber()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setNumber('123A');
 		$this->assertEquals('123A',$this->object->getNumber());
 	}
 
 	public function testGetUnitModel()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setUnitModel('test');
 		$this->assertEquals('test',$this->object->getUnitModel());
 	}
 
 	public function testGetUnitModelId()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setUnitModelId(1);
 		$this->assertEquals(1,$this->object->getUnitModelId());
 	}
 
 	public function testGetIsAvailable()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setIsAvailable(1);
 		$this->assertEquals(1,$this->object->getIsAvailable());
 	}
 
 	public function testGetIsAvailableStringYes()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setIsAvailable(1);
 		$this->assertEquals('Yes',$this->object->getIsAvailableString());
 	}
 
 	public function testGetIsAvailableStringNo()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setIsAvailable(0);
 		$this->assertEquals('No',$this->object->getIsAvailableString());
 	}
 
 	public function testGetYearBuilt()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setYearBuilt(2005);
 		$this->assertEquals(2005,$this->object->getYearBuilt());
 	}
 
 	public function testGetYearRenovated()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setYearRenovated(2006);
 		$this->assertEquals(2006,$this->object->getYearRenovated());
 	}
 	// test the possibilities
 	public function testBulkSave()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->db->query('DELETE FROM unit');
 
 		$this->object->setApartmentId(1);
 
 	public function testBulkSaveValidation()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->db->query('DELETE FROM unit');
 		//$this->object->setApartmentId(1);
 		$this->object->setNumber(1001);  // should exist from previous test
 	// test the possibilities
 	public function testSingleSave()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->db->query('TRUNCATE unit');
 
 		$this->object->setApartmentId(1);
 	 */
 	public function testCheckNumber()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setApartmentId(1);
 		$this->object->setNumber('ABC');
 		$this->object->setUnitModelId(1);
 	// TODO: test the alpha sort.  The sorting is still in flux so that can be tested once the alpha sort is better
 	public function testGetApartmentUnits()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setApartmentId(1);
 		$result = $this->object->getApartmentUnits();
 		//var_dump( $result );
 	// tests saving without an apartment id - should return false
 	public function testSaveNoApartment()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->db->query('TRUNCATE unit');
 		$this->db->query('TRUNCATE apartment');
 		
 	// tests saving without a date but with isAvailable set
 	public function testSaveNoDateAvailable()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->db->query('TRUNCATE unit');		
 		
 		$this->object->setNumber('ABC');
 	// find where this method is used.  Might need to refactor a tad
 	public function testGetUnit()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$this->object->setId(1);
 		$results=$this->object->getUnit();
 		$this->assertEquals( 1,$results->getId() );

tests/application/modules/user/library/Helper/User_Library_Helper_JoinTest.php

 
     public function testCreateAccount()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
     	$args = array('username'=>'john','firstName'=>'Test','lastName'=>'Test','password'=>'Test1234','emailAddress'=>'jtest@test.com');
     	$user = new User_Library_Helper_Join($args);
     	$id = $user->createAccount();
 
     public function testCreateAccountRejectsRepeatedName()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
     	$args = array('username'=>'jvazquez','firstName'=>'Test','lastName'=>'Test','password'=>'Test1234','emailAddress'=>'jtest@test.com');
     	$user = new User_Library_Helper_Join($args);
     	$id = $user->createAccount();
 
     public function testAuthenticate()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
     	$args = array('username'=>'john','firstName'=>'Test','lastName'=>'Test','password'=>'Test1234','emailAddress'=>'jtest@test.com');
     	$user = new User_Library_Helper_Join($args);
     	$id = $user->createAccount();

tests/application/modules/user/library/Helper/User_Library_Helper_LoginTest.php

 
 	public function testGetLoginDestination()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$args = array(0=>0,1=>1,2=>NULL);
 		$result = $this->object->getLoginDestination($args[0]);
 		$this->assertEquals('user/login/index',$result,'We should be going back to login when we fail');
 
 	public function testAuthenticateUser()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$result = $this->object->authenticateUser('jvazquez', 'Test1234');
 		$this->assertTrue($result,$this->object->getMessageState());
 		$this->logout();
 
 	public function testAuthenticateUserFails()
 	{
-		echo "Running ".__FUNCTION__.PHP_EOL;
+		
 		$result = $this->object->authenticateUser('jvazquez',null);
 		$this->assertFalse($result,'Should have returned false');
 		$this->assertEquals('invalidCredentials', $this->object->getMessageState());

tests/application/modules/user/models/User_Model_UserTest.php

 
     public function testConstructSetsAttributes()
     {
-    	echo "Running ".__FUNCTION__.PHP_EOL;
+    	
         $args = array(
                 'firstName' => 'firstname',
                 'lastName' => 'lastname',
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.