コード例 #1
0
 public function testGetBlockSelectorWithModificator()
 {
     $this->_annotation->block = 'block-name';
     $this->_annotation->modificator = array('modificator-name' => 'modificator-value');
     $this->_locatorHelper->shouldReceive('getBlockLocator')->with('block-name', 'modificator-name', 'modificator-value')->once()->andReturn('OK');
     $this->assertEquals('OK', $this->_annotation->getSelector($this->_locatorHelper));
 }
コード例 #2
0
 public function testGetElementLocator()
 {
     $this->_locatorHelper->shouldReceive('getElementLocator')->with('element-name', 'block-name', 'modificator-name', 'modificator-value')->once()->andReturn('OK');
     $this->assertEquals('OK', $this->locator->getElementLocator('element-name', 'block-name', 'modificator-name', 'modificator-value'));
 }