public function testEditCustomer()
 {
     Client::Update(2, 'Alex Mbaka', '0727596600', '*****@*****.**', 'Suite 602, Marafique Arcade. Kenyatta Avenue');
     $client = Client::GetParty(2);
     $this->assertInstanceOf('Party', $client);
     $this->assertTrue($client->telephone == '0727596600');
 }
Example #2
0
<?php

//The aim of a test is to test for the end user use cases, this is their originating principle - BDD, TDD
require_once '/../domain/LSOfficeDomain.php';
$client = Client::GetParty(2);
$project = Project::GetProject(20);
echo count($project->getActivities());
//$invoice->post();
?>