示例#1
0
 public function testHasTwoWaySyncConnectors()
 {
     $testType = 'type2';
     $testTypeThatHasConnectors = 'type1';
     $this->typesRegistry->addChannelType($testType, new TestIntegrationType());
     $this->typesRegistry->addChannelType($testTypeThatHasConnectors, new TestIntegrationType());
     $this->typesRegistry->addConnectorType(uniqid('type'), $testType, new TestConnector());
     $this->typesRegistry->addConnectorType(uniqid('type'), $testTypeThatHasConnectors, new TestTwoWayConnector());
     $this->assertTrue($this->utils->hasTwoWaySyncConnectors($testTypeThatHasConnectors));
     $this->assertFalse($this->utils->hasTwoWaySyncConnectors($testType));
 }