This file contains hidden or 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
<?php | |
namespace tests\_pages\user; | |
use yii\codeception\BasePage; | |
class LoginPage extends BasePage | |
{ | |
public $route = 'account/login'; |
This file contains hidden or 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
<?php | |
use \WebGuy; | |
class UserLoginCest | |
{ | |
public function testLoginPage(WebGuy $I) { | |
$I->amOnPage('/user/account/login'); | |
$I->seeInTitle('Войти'); | |
$I->seeLink('Забыли пароль?'); | |
$I->see('Войти'); |
This file contains hidden or 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
<?php | |
$I = new WebGuy($scenario); | |
$I->wantTo('Test "contact" page of amyLabs site!'); | |
$I->amOnPage('/contact'); | |
// check title | |
$I->see('Наши контакты','h2'); | |
// check contact information | |
foreach ($contacts as $contact){ |
This file contains hidden or 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
<?php | |
/** | |
* Craft by Pixel & Tonic | |
* | |
* @package Craft | |
* @author Pixel & Tonic, Inc. | |
* @copyright Copyright (c) 2013, Pixel & Tonic, Inc. | |
* @license http://buildwithcraft.com/license Craft License Agreement | |
* @link http://buildwithcraft.com |
This file contains hidden or 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
use strict; | |
use warnings; | |
use 5.010; | |
use Data::Dumper; | |
use Mojo::UserAgent; | |
use Mojo::JSON; | |
my $user = 'xomaa'; | |
my $url = "https://api.twitter.com/1/favorites.json?count=3&include_entities=1&id=$user"; | |
my $ua = Mojo::UserAgent->new; |
This file contains hidden or 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
$comment->setAttributes(array( | |
'userId' => Yii::app()->user->getId(), | |
'name' => Yii::app()->user->getState('nickName'), | |
'email' => Yii::app()->user->getState('email'), | |
)); |
This file contains hidden or 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
$comment->setAttributes(array( | |
'userId' => Yii::app()->user->getId(), | |
'name' => Yii::app()->user->getState('nickName'), | |
'email' => Yii::app()->user->getState('email'), | |
)); |
NewerOlder