mirror of
https://github.com/sctn4elk/CustomerRewardsRESTAPI.git
synced 2025-01-09 14:24:30 -06:00
37 lines
983 B
PHP
37 lines
983 B
PHP
<?php
|
|
|
|
/*
|
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
|
* Click nbfs://nbhost/SystemFileSystem/Templates/SeleniumTests/SeleneseTest.php to edit this template
|
|
*/
|
|
|
|
/**
|
|
* Description of CustomerModelTest
|
|
*
|
|
* @author SCTN4
|
|
*/
|
|
class CustomerModelTest extends PHPUnit_Framework_TestCase {
|
|
|
|
/**
|
|
* @var \RemoteWebDriver
|
|
*/
|
|
protected $webDriver;
|
|
|
|
public function setUp() {
|
|
$capabilities = array(\WebDriverCapabilityType::BROWSER_NAME => 'firefox');
|
|
$this->webDriver = RemoteWebDriver::create('http://localhost:4444/wd/hub', $capabilities);
|
|
}
|
|
|
|
public function tearDown() {
|
|
$this->webDriver->close();
|
|
}
|
|
|
|
protected $url = 'http://www.netbeans.org/';
|
|
|
|
public function testSimple() {
|
|
$this->webDriver->get($this->url);
|
|
// checking that page title contains word 'NetBeans'
|
|
$this->assertContains('NetBeans', $this->webDriver->getTitle());
|
|
}
|
|
}
|