コード例 #1
0
 public function testShouldNotLogCommandsInNormalMode()
 {
     $this->setDebugMode(false);
     // Make debug mode disabled
     $this->driver->findElement(\WebDriverBy::className('foo'));
     $this->driver->getTitle();
     $this->expectOutputString('');
 }
コード例 #2
0
ファイル: EditTest.php プロジェクト: pradeep-wagento/magento2
 /**
  * @return \Magento\Framework\Phrase|string
  */
 protected function getTitle()
 {
     return $this->blockMock->getId() ? $this->blockMock->getTitle() : __('New Block');
 }
コード例 #3
0
 public function testGetTitle()
 {
     $result = 'Test Result';
     $this->model->setTitle($result);
     $this->assertEquals($result, $this->model->getTitle());
 }
コード例 #4
0
 /**
  * @covers ::getTitle
  */
 public function testGetTitle()
 {
     $this->assertSame('Netherlands', $this->sut->getTitle());
 }
コード例 #5
0
ファイル: JsTest.php プロジェクト: shabbirvividads/magento2
 /**
  * @covers \Magento\DesignEditor\Block\Adminhtml\Editor\Tools\Code\Js::getTitle
  */
 public function testGetTitle()
 {
     $this->assertEquals('Custom javascript files', $this->_model->getTitle());
 }
コード例 #6
0
ファイル: AbstractProductTest.php プロジェクト: extcode/cart
 /**
  * @test
  */
 public function getTitleReturnsInitialValueForString()
 {
     $this->assertSame('', $this->product->getTitle());
 }
コード例 #7
0
ファイル: EditTest.php プロジェクト: Doability/magento2dev
 /**
  * @return \Magento\Framework\Phrase|string
  */
 protected function getTitle()
 {
     return $this->pageMock->getId() ? $this->pageMock->getTitle() : __('New Page');
 }
コード例 #8
0
ファイル: CompactCityTest.php プロジェクト: triquanta/libizi
 /**
  * @covers ::getTitle
  */
 public function testGetTitle()
 {
     $this->assertSame('Amsterdam', $this->sut->getTitle());
 }