Skip to content

Instantly share code, notes, and snippets.

@sanslan
Created July 1, 2022 09:48
Show Gist options
  • Save sanslan/17cba506de9be97eac1a3e8f22164a26 to your computer and use it in GitHub Desktop.
Save sanslan/17cba506de9be97eac1a3e8f22164a26 to your computer and use it in GitHub Desktop.
<?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