mirror of
https://github.com/BushlanovDev/max-bot-api-client-php.git
synced 2026-08-17 13:24:17 +00:00
Refactoring
This commit is contained in:
@@ -38,12 +38,10 @@ final class BotCommandTest extends TestCase
|
||||
#[Test]
|
||||
public function canBeCreatedFromArrayWithOptionalDataNull(): void
|
||||
{
|
||||
$data = [
|
||||
$command = BotCommand::fromArray([
|
||||
'name' => 'help',
|
||||
'description' => null,
|
||||
];
|
||||
|
||||
$command = BotCommand::fromArray($data);
|
||||
]);
|
||||
|
||||
$this->assertInstanceOf(BotCommand::class, $command);
|
||||
$this->assertSame('help', $command->name);
|
||||
|
||||
Reference in New Issue
Block a user