Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
LikeWidgetTest.php
1 <?php
2 /**
3  * Gentics Portal.Node PHP
4  * Author & Copyright (c) by Gentics Software GmbH
5  * sales@gentics.com
6  * http://www.gentics.com
7  * Licenses can be found in the LICENSE.txt file in the root-folder of this installation
8  * You must not use this software without a valid license agreement.
9  *
10  */
12 {
13 
14  public function setUp(){
15  parent::setUp();
16  //for javascript links
17  $this->setSleep(1);
18  }
19 
20  public function testLoginEmailAndStatus()
21  {
22  $this->open('widgetsTests/likeLike');
23  $this->clickAndWait('link=Log in to Like');
24 
25  $this->type('name=UserLogin[authField]', 'webmaster@example.com');
26  $this->type('name=UserLogin[password]', 'admin');
27  $this->clickAndWait("//input[@value='Login']");
28 
29  $this->assertTextPresent('Like');
30  $this->click('link=Like');
31  $this->assertTextPresent('You');
32  $this->click('link=Unlike');
33  }
34 
35 }