public function testGetLastStatusForConnectorWorks() { $fooIntegration = $this->getReference('oro_integration:foo_integration'); $this->assertSame($this->getReference('oro_integration:foo_first_connector_second_status_completed'), $this->repository->getLastStatusForConnector($fooIntegration, 'first_connector', Status::STATUS_COMPLETED)); $this->assertSame($this->getReference('oro_integration:foo_first_connector_third_status_failed'), $this->repository->getLastStatusForConnector($fooIntegration, 'first_connector', Status::STATUS_FAILED)); $barIntegration = $this->getReference('oro_integration:bar_integration'); $this->assertSame($this->getReference('oro_integration:bar_first_connector_first_status_completed'), $this->repository->getLastStatusForConnector($barIntegration, 'first_connector', Status::STATUS_COMPLETED)); }