for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Retour plugin for Craft CMS 3.x
*
* Retour allows you to intelligently redirect legacy URLs, so that you don't
* lose SEO value when rebuilding & restructuring a website
* @link https://nystudio107.com/
* @copyright Copyright (c) 2018 nystudio107
*/
namespace nystudio107\retourtests\unit;
use nystudio107\retour\Retour;
use Codeception\Test\Unit;
use UnitTester;
use Craft;
* ExampleUnitTest
* @author nystudio107
* @package Retour
* @since 3.1.40``
class BaseUnitTest extends Unit
{
// Properties
// =========================================================================
* @var UnitTester
protected $tester;
// Public methods
// Tests
public function testPluginInstance()
$this->assertInstanceOf(
Retour::class,
Retour::$plugin
);
}
public function testCraftEdition()
Craft::$app->setEdition(Craft::Pro);
$this->assertSame(
Craft::Pro,
Craft::$app->getEdition()