예제 #1
0
 public function testLoadActiveIntegrationByConsumerId()
 {
     $consumerId = 1;
     $integrationData = ['integration_id' => 1, 'name' => 'Test Integration'];
     $this->resourceMock->expects($this->once())->method('selectActiveIntegrationByConsumerId')->with($consumerId)->will($this->returnValue($integrationData));
     $this->integrationModel->loadActiveIntegrationByConsumerId($consumerId);
     $this->assertEquals($integrationData, $this->integrationModel->getData());
 }