for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @link https://github.com/yiimaker/yii2-newsletter
* @copyright Copyright (c) 2017 Yii Maker
* @license BSD 3-Clause License
*/
namespace ymaker\newsletter\tests\mock;
use yii\web\Request;
* Feke request component for mock in tests
*
* @author Vladimir Kuprienko <[email protected]>
* @since 1.0
class FakeRequest extends Request
{
* @inheritdoc
public function getIsPost()
return true;
}
public function post($name = null, $defaultValue = null)
return [
'NewsletterClient' => ['contacts' => '[email protected]'],
];