Beispiel #1
0
 /** @depends it_can_create_a_creditor */
 function test_it_can_update_a_creditor(Creditor $creditor)
 {
     $creditor->setName('Not So Nude Wines');
     $notSoNudeWines = $this->api->updateCreditor($creditor);
     $this->assertEquals('Not So Nude Wines', $notSoNudeWines->getName());
 }
Beispiel #2
0
 /** @test */
 function it_can_access_the_required_attributes()
 {
     $creditor = new Creditor();
     $creditor->setName('The Wine Club');
     $this->assertEquals('The Wine Club', $creditor->getName());
 }