mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Fix mail-test command return value
This commit is contained in:
@@ -31,5 +31,7 @@ class MailTest extends Command
|
||||
$this->container['notification.deliverer']->deliver(
|
||||
Mail::create($this->container, new Receiver(null, $input->getArgument('email')))
|
||||
);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@@ -31,8 +31,9 @@ class MailTestTest extends \PhraseanetPHPUnitAbstract
|
||||
|
||||
$command = new MailTest('mail:test');
|
||||
$command->setContainer(self::$DI['app']);
|
||||
$command->execute($input, $output);
|
||||
$result = $command->execute($input, $output);
|
||||
|
||||
$this->assertSame(0, $result);
|
||||
$this->assertEquals('test-mail@phraseanet.com', $capturedEmail->getReceiver()->getEmail());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user