Esempio n. 1
0
 public function testShouldNotLogCommandsInNormalMode()
 {
     $this->setDebugMode(false);
     // Make debug mode disabled
     $this->driver->findElement(\WebDriverBy::className('foo'));
     $this->driver->getTitle();
     $this->expectOutputString('');
 }
Esempio n. 2
0
 /**
  * @return \Magento\Framework\Phrase|string
  */
 protected function getTitle()
 {
     return $this->blockMock->getId() ? $this->blockMock->getTitle() : __('New Block');
 }
 public function testGetTitle()
 {
     $result = 'Test Result';
     $this->model->setTitle($result);
     $this->assertEquals($result, $this->model->getTitle());
 }
Esempio n. 4
0
 /**
  * @covers ::getTitle
  */
 public function testGetTitle()
 {
     $this->assertSame('Netherlands', $this->sut->getTitle());
 }
Esempio n. 5
0
 /**
  * @covers \Magento\DesignEditor\Block\Adminhtml\Editor\Tools\Code\Js::getTitle
  */
 public function testGetTitle()
 {
     $this->assertEquals('Custom javascript files', $this->_model->getTitle());
 }
Esempio n. 6
0
 /**
  * @test
  */
 public function getTitleReturnsInitialValueForString()
 {
     $this->assertSame('', $this->product->getTitle());
 }
Esempio n. 7
0
 /**
  * @return \Magento\Framework\Phrase|string
  */
 protected function getTitle()
 {
     return $this->pageMock->getId() ? $this->pageMock->getTitle() : __('New Page');
 }
Esempio n. 8
0
 /**
  * @covers ::getTitle
  */
 public function testGetTitle()
 {
     $this->assertSame('Amsterdam', $this->sut->getTitle());
 }