annotate 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
rev   line source
Chris@14 1 <?php
Chris@14 2
Chris@14 3 namespace Behat\Mink\Tests\Driver\Custom;
Chris@14 4
Chris@14 5 use Behat\Mink\Tests\Driver\TestCase;
Chris@14 6
Chris@14 7 class WindowNameTest extends TestCase
Chris@14 8 {
Chris@17 9 public function testWindowNames()
Chris@14 10 {
Chris@14 11 $session = $this->getSession();
Chris@17 12 $session->start();
Chris@14 13
Chris@14 14 $windowNames = $session->getWindowNames();
Chris@14 15 $this->assertArrayHasKey(0, $windowNames);
Chris@14 16
Chris@17 17 $windowName = $session->getWindowName();
Chris@14 18
Chris@17 19 $this->assertInternalType('string', $windowName);
Chris@17 20 $this->assertContains($windowName, $windowNames, 'The current window name is one of the available window names.');
Chris@14 21 }
Chris@14 22 }