FINAL suepr merge step : added all modules to this super repos
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
class ReadonlymodeTestCase extends DrupalWebTestCase {
|
||||
|
||||
protected $privileged_user;
|
||||
|
||||
public static function getInfo() {
|
||||
// Note that getInfo() strings are not translated with t().
|
||||
return array(
|
||||
'name' => 'Readonly Mode',
|
||||
'description' => 'Test cases for read only mode module.',
|
||||
'group' => 'Read Only Mode',
|
||||
);
|
||||
}
|
||||
|
||||
public function setUp() {
|
||||
parent::setUp('readonlymode');
|
||||
|
||||
$this->privileged_user = $this->drupalCreateUser(array('create article content'));
|
||||
}
|
||||
|
||||
function testNodeCreateWhenReadonlymodeDisabled() {
|
||||
$this->testId = 1;
|
||||
$this->drupalLogin($this->privileged_user);
|
||||
$this->drupalGet('node/add/article');
|
||||
$this->assertResponse('200', 'User can create article');
|
||||
}
|
||||
|
||||
function testSometest(){
|
||||
$this->testId=2;
|
||||
$this->assert(true,'This is test message');
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user