Mercurial > hg > isophonics-drupal-site
view vendor/behat/mink-selenium2-driver/tests/Custom/WindowNameTest.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children |
line wrap: on
line source
<?php namespace Behat\Mink\Tests\Driver\Custom; use Behat\Mink\Tests\Driver\TestCase; class WindowNameTest extends TestCase { public function testWindowNames() { $session = $this->getSession(); $session->start(); $windowNames = $session->getWindowNames(); $this->assertArrayHasKey(0, $windowNames); $windowName = $session->getWindowName(); $this->assertInternalType('string', $windowName); $this->assertContains($windowName, $windowNames, 'The current window name is one of the available window names.'); } }