mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-05 20:57:12 +00:00
[Behat][Installation] Fix behats
This commit is contained in:
parent
a73aaf6e69
commit
965410d45d
3 changed files with 5 additions and 3 deletions
|
|
@ -12,9 +12,9 @@ Feature: Sylius Install Feature
|
|||
Scenario: Trying to register administrator account without email
|
||||
Given I do not provide an email
|
||||
When I run Sylius CLI installer
|
||||
Then I should see output "E-mail: This value should not be blank"
|
||||
Then I should see output "This value should not be blank"
|
||||
|
||||
Scenario: Trying to register administrator account with an incorrect email
|
||||
Given I do not provide a correct email
|
||||
When I run Sylius CLI installer
|
||||
Then I should see output "E-mail: This value is not a valid email address."
|
||||
Then I should see output "This value is not a valid email address."
|
||||
|
|
|
|||
|
|
@ -5,6 +5,6 @@ Feature: Load sample data feature
|
|||
I want to run a command that loads sample data
|
||||
|
||||
Scenario: Running install sample data command
|
||||
Given I run Sylius Install Load Sample Data command
|
||||
When I run Sylius Install Load Sample Data command
|
||||
And I confirm loading sample data
|
||||
Then the command should finish successfully
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ final class InstallerContext implements Context
|
|||
private $inputChoices = [
|
||||
'currency' => 'USD',
|
||||
'e-mail' => 'test@email.com',
|
||||
'username' => 'test',
|
||||
'password' => 'pswd',
|
||||
'confirmation' => 'pswd',
|
||||
];
|
||||
|
|
@ -141,6 +142,7 @@ final class InstallerContext implements Context
|
|||
public function iProvideFullAdministratorData()
|
||||
{
|
||||
$this->inputChoices['e-mail'] = 'test@admin.com';
|
||||
$this->inputChoices['username'] = 'test';
|
||||
$this->inputChoices['password'] = 'pswd1$';
|
||||
$this->inputChoices['confirmation'] = $this->inputChoices['password'];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue