Created
July 1, 2022 09:48
-
-
Save sanslan/17cba506de9be97eac1a3e8f22164a26 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Tests; | |
use App\Handler\KycHandler; | |
use PhpAmqpLib\Message\AMQPMessage; | |
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; | |
class KYCTest extends KernelTestCase | |
{ | |
private KycHandler $kycHandler; | |
protected function setUp(): void | |
{ | |
$this->kycHandler = static::getContainer()->get('App\Handler\KycHandler'); | |
} | |
public function testSomething() | |
{ | |
self::bootKernel(); | |
$amq = new AMQPMessage(); | |
$amq->setBody('Mansur Manafov'); | |
$this->kycHandler->execute($amq); | |
self::assertNotNull('test'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment