for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace MaxBeckers\AmazonAlexa\Test\Response\Directives\Dialog;
use MaxBeckers\AmazonAlexa\Intent\Intent;
use MaxBeckers\AmazonAlexa\Response\Directives\Dialog\ElicitSlotDirective;
use PHPUnit\Framework\TestCase;
class ElicitSlotDirectiveTest extends TestCase
{
public function testCreate(): void
$elicitSlotDirective = ElicitSlotDirective::create('');
$this->assertSame('Dialog.ElicitSlot', $elicitSlotDirective->type);
}
public function testCreateWithIntent(): void
$json = file_get_contents(__DIR__ . '/../../../Intent/Data/intent_without_resolutions.json');
$intent = Intent::fromAmazonRequest(json_decode($json, true));
$elicitSlotDirective = ElicitSlotDirective::create('', $intent);