-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7203598
commit 379fcbb
Showing
3 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
|
||
namespace Drupal\Tests\tripal_blast\Functional; | ||
|
||
use Drupal\Core\Url; | ||
use Drupal\Tests\tripal_chado\Functional\ChadoTestBrowserBase; | ||
|
||
/** | ||
* Checks the main user program listing found at SITE/blast. | ||
* | ||
* @group TripalBlast | ||
* @group User Interface | ||
*/ | ||
class UserInterfaceTest extends ChadoTestBrowserBase { | ||
|
||
protected $defaultTheme = 'stark'; | ||
|
||
/** | ||
* Modules to enable. | ||
* | ||
* @var array | ||
*/ | ||
protected static $modules = ['tripal','tripal_blast']; | ||
|
||
/** | ||
* Tests that a specific set of pages load with a 200 response. | ||
*/ | ||
public function testLoadUI() { | ||
$session = $this->getSession(); | ||
|
||
// Ensure we have an admin user. | ||
$user = $this->drupalCreateUser(['access content']); | ||
$this->drupalLogin($user); | ||
|
||
$context = '(modules installed: ' . implode(',', self::$modules) . ')'; | ||
|
||
// Blast UI | ||
$this->drupalGet(Url::fromRoute('tripal_blast.blast_ui')); | ||
$status_code = $session->getStatusCode(); | ||
$this->assertEquals(200, $status_code, "The blast user interface listing the programs available should be able to load."); | ||
|
||
|
||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters