-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathtest_buildoverview.php
More file actions
31 lines (28 loc) · 1012 Bytes
/
test_buildoverview.php
File metadata and controls
31 lines (28 loc) · 1012 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
//
// After including cdash_test_case.php, subsequent require_once calls are
// relative to the top of the CDash source tree
//
require_once __DIR__ . '/cdash_test_case.php';
class BuildOverviewTestCase extends KWWebTestCase
{
public function __construct()
{
parent::__construct();
}
public function testBuildOverview()
{
$this->login();
$this->get($this->url . '/buildOverview.php');
if (!str_contains($this->getBrowser()->getContentAsText(), 'You do not have access to the requested project or the requested project does not exist.')) {
$this->fail("'Project not specified' not found when expected");
return 1;
}
$this->get($this->url . '/buildOverview.php?project=InsightExample');
if (!str_contains($this->getBrowser()->getContentAsText(), 'Build summary')) {
$this->fail("'Build summary' not found when expected");
return 1;
}
$this->pass('Passed');
}
}