Пример #1
0
 /**
  * The basic functionality of the DrupalTiTest class.
  */
 public function testDrupalTiTest()
 {
     $test = new DrupalTiTest();
     $this->assertEqual('foo', $test->bar(), "Bar function of DrupalTiTest() returns foo.");
     //$this->assertEqual('foo', 'bar', 'This test will fail.');
     $this->drupalGet('<front>');
     $this->assertResponse(200, 'Front page exists.');
     $this->assertRaw('Drupal');
     // Test that login works.
     $admin_user = $this->drupalCreateUser(array('access content'));
     $this->drupalLogin($admin_user);
 }
Пример #2
0
 /**
  * @covers ::bar
  */
 public function test_bar()
 {
     $test = new DrupalTiTest();
     $this->assertEquals('foo', $test->bar());
 }