"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Tests/EntryPoint/FormAuthenticationEntryPointTest.php" between
phplist-3.4.5.tgz and phplist-3.4.6.tgz

About: phpList is a one-way email announcement delivery system for newsletters, publicity lists, notifications, and many other uses (requires PHP and MySQL).

FormAuthenticationEntryPointTest.php  (phplist-3.4.5.tgz):FormAuthenticationEntryPointTest.php  (phplist-3.4.6.tgz)
skipping to change at line 15 skipping to change at line 15
* *
* (c) Fabien Potencier <fabien@symfony.com> * (c) Fabien Potencier <fabien@symfony.com>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
namespace Symfony\Component\Security\Http\Tests\EntryPoint; namespace Symfony\Component\Security\Http\Tests\EntryPoint;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\Security\Http\EntryPoint\FormAuthenticationEntryPoint; use Symfony\Component\Security\Http\EntryPoint\FormAuthenticationEntryPoint;
class FormAuthenticationEntryPointTest extends TestCase class FormAuthenticationEntryPointTest extends TestCase
{ {
public function testStart() public function testStart()
{ {
$request = $this->getMockBuilder('Symfony\Component\HttpFoundation\Reque st')->disableOriginalConstructor()->disableOriginalClone()->getMock(); $request = $this->getMockBuilder('Symfony\Component\HttpFoundation\Reque st')->disableOriginalConstructor()->disableOriginalClone()->getMock();
$response = new Response(); $response = new RedirectResponse('/the/login/path');
$httpKernel = $this->getMockBuilder('Symfony\Component\HttpKernel\HttpKe rnelInterface')->getMock(); $httpKernel = $this->getMockBuilder('Symfony\Component\HttpKernel\HttpKe rnelInterface')->getMock();
$httpUtils = $this->getMockBuilder('Symfony\Component\Security\Http\Http Utils')->getMock(); $httpUtils = $this->getMockBuilder('Symfony\Component\Security\Http\Http Utils')->getMock();
$httpUtils $httpUtils
->expects($this->once()) ->expects($this->once())
->method('createRedirectResponse') ->method('createRedirectResponse')
->with($this->equalTo($request), $this->equalTo('/the/login/path')) ->with($this->equalTo($request), $this->equalTo('/the/login/path'))
->willReturn($response) ->willReturn($response)
; ;
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)