Lock file maintenance
This commit is contained in:
parent
ff31bf599f
commit
3a53c3adc9
326 changed files with 30009 additions and 16 deletions
33
vendor/endroid/qrcode/tests/Bundle/Controller/QrCodeControllerTest.php
vendored
Normal file
33
vendor/endroid/qrcode/tests/Bundle/Controller/QrCodeControllerTest.php
vendored
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* (c) Jeroen van den Enden <info@endroid.nl>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
namespace Endroid\QrCode\Tests\Bundle\Controller;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
||||
class QrCodeControllerTest extends WebTestCase
|
||||
{
|
||||
/**
|
||||
* Tests if the QR code generation route returns a success response.
|
||||
*/
|
||||
public function testCreateQrCode()
|
||||
{
|
||||
$client = static::createClient();
|
||||
|
||||
$client->request('GET', $client->getContainer()->get('router')->generate('endroid_qrcode', [
|
||||
'text' => 'Life is too short to be generating QR codes',
|
||||
'extension' => 'png',
|
||||
'size' => 150,
|
||||
'label' => 'Dit is een label',
|
||||
'label_font_size' => 16,
|
||||
]));
|
||||
|
||||
$this->assertEquals(200, $client->getResponse()->getStatusCode());
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue