Skip to content

Commit

Permalink
Update office test
Browse files Browse the repository at this point in the history
  • Loading branch information
Len van Essen committed Feb 4, 2020
1 parent 848442f commit ed7f22b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/IntegrationTests/OfficeIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,16 @@ public function testListOfficesWithoutCompanyId()
$this->assertSame('010', $offices[1]->getCode());
$this->assertSame('More&Zo Holding', $offices[1]->getName());
}

public function testSetOffice()
{
$this->sessionService
->expects($this->once())
->method("setOffice")
->with($this->office)
->willReturn(true);

$response = $this->officeApiConnector->setOffice($this->office);
$this->assertTrue($response);
}
}

0 comments on commit ed7f22b

Please sign in to comment.