/**
  * @covers Moneybird\Invoice_Service::getByIds
  */
 public function testGetByIds()
 {
     $invoices = $this->service->getByIds(array(self::$invoiceId));
     $this->assertInstanceOf('Moneybird\\Invoice\\ArrayObject', $invoices);
     $this->assertCount(1, $invoices);
 }
Example #2
0
 /**
  * @covers Moneybird\Contact_Service::getByIds
  */
 public function testGetByIds()
 {
     $contacts = $this->service->getByIds(array(self::$contactId, $this->testContactId));
     $this->assertInstanceOf('Moneybird\\Contact_Array', $contacts);
     $this->assertCount(2, $contacts);
 }