Commit 92174780 authored by Tobias Munk's avatar Tobias Munk

added test groups (annotations), removed unused folders

parent 8563069b
Pipeline #8430 failed with stages
......@@ -7,8 +7,6 @@ make TEST setup up
set +e
set -v
make TEST run-tests codecept_opts='functional allow_fail --html=_report_allow_fail_functional.html' || EXIT_CODE=1
make TEST run-tests codecept_opts='acceptance allow_fail --html=_report_allow_fail_acceptance.html' || EXIT_CODE=1
make TEST run-tests codecept_opts='unit,functional,acceptance -g optional --html=_report_optional.html' || EXIT_CODE=1
set -e
exit ${EXIT_CODE}
......@@ -10,8 +10,7 @@ make TEST clean-tests
set -v
set +e
make TEST run-tests codecept_opts='unit prod --html=_report_unit.html' || EXIT_CODE=1
make TEST run-tests codecept_opts='functional prod --html=_report_functional.html' || EXIT_CODE=1
make TEST run-tests codecept_opts='acceptance prod --html=_report_acceptance.html' || EXIT_CODE=1
make TEST run-tests codecept_opts='unit,functional,acceptance -g mandatory --html=_report_mandatory.html' || EXIT_CODE=1
exit ${EXIT_CODE}
<?php
// @group mandatory
use tests\codeception\_pages\LoginPage;
$I = new AcceptanceTester($scenario);
......
<?php
// @group mandatory
use tests\codeception\_pages\LoginPage;
$I = new AcceptanceTester($scenario);
......
<?php
// @group mandatory
use tests\codeception\_pages\LoginPage;
$I = new AcceptanceTester($scenario);
......
<?php
// @group mandatory
use tests\codeception\_pages\LoginPage;
$I = new AcceptanceTester($scenario);
......
<?php
// @group mandatory
$I = new AcceptanceTester($scenario);
$I->wantTo('ensure that home page is not visible without login');
......
<?php
// @group mandatory
$I = new AcceptanceTester($scenario);
$I->wantTo('ensure that JavaScript works');
......
<?php
/**
* @link http://www.diemeisterei.de/
* @copyright Copyright (c) 2015 diemeisterei GmbH, Stuttgart
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
// @group mandatory
$I = new AcceptanceTester($scenario);
......
<?php
// @group mandatory
use tests\codeception\_pages\LoginPage;
$I = new AcceptanceTester($scenario);
......
<?php
// @group optional
use tests\codeception\_pages\LoginPage;
$I = new AcceptanceTester($scenario);
......
<?php
/**
* @link http://www.diemeisterei.de/
* @copyright Copyright (c) 2015 diemeisterei GmbH, Stuttgart
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
// @group mandatory
$I = new AcceptanceTester($scenario);
......
<?php
use tests\codeception\_pages\AboutPage;
// @group mandatory
$I = new AcceptanceTester($scenario);
......
<?php
use tests\codeception\_pages\AboutPage;
// @group mandatory
$I = new AcceptanceTester($scenario);
$I->wantTo('ensure that sign-up works');
......
<?php
// @group mandatory
use tests\codeception\_pages\LoginPage;
$I = new AcceptanceTester($scenario);
......
<?php
/**
* @link http://www.diemeisterei.de/
* @copyright Copyright (c) 2015 diemeisterei GmbH, Stuttgart
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
// @group mandatory
use \tests\codeception\_pages\LoginPage;
......
<?php
// @group mandatory
$I = new FunctionalTester($scenario);
$I->wantTo('ensure that access control works');
......
<?php
// @group mandatory
use tests\codeception\_pages\LoginPage;
$I = new FunctionalTester($scenario);
......
<?php
// @group optional
use tests\codeception\_pages\LoginPage;
$I = new FunctionalTester($scenario);
......
<?php
// @group mandatory
$I = new FunctionalTester($scenario);
$I->wantTo('ensure that error page works');
......
<?php
// @group optional
$I = new FunctionalTester($scenario);
$I->wantTo('ensure that home page works');
$I->amOnPage(Yii::$app->homeUrl);
......
<?php
// @group mandatory
use tests\codeception\_pages\LoginPage;
$I = new FunctionalTester($scenario);
......
<?php
// @group mandatory
use tests\codeception\_pages\LoginPage;
$I = new FunctionalTester($scenario);
......
<?php
// @group mandatory
$I = new FunctionalTester($scenario);
$I->wantTo('check application versioning');
......
......@@ -15,17 +15,26 @@ class UserTest extends TestCase
parent::setUp();
}
/**
* @group mandatory
*/
public function testUserLogout()
{
$this->assertTrue(\Yii::$app->user->logout());
}
/**
* @group mandatory
*/
public function testUserLogin()
{
$identity = User::findIdentity(1);
$this->assertTrue(\Yii::$app->user->login($identity, 3600));
}
/**
* @group mandatory
*/
public function testNonExistingUserModel()
{
$identity = User::findIdentity(99999);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment