Skip to content

Commit 3fc10b3

Browse files
author
Martynas Sudintas
committed
added Import command unit test
1 parent 5a7908e commit 3fc10b3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Tests/Functional/Command/ImportCommandTest.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,21 @@ public function testConfigOnlyOptionImport()
134134
$this->assertGreaterThan(0, $this->getTranslationsCount(['lt'], ['messages']));
135135
}
136136

137+
/**
138+
* Tests if exception is thrown when unknown bundle is provided.
139+
*
140+
* @expectedException \InvalidArgumentException
141+
*/
142+
public function testIncorrectBundleImportException()
143+
{
144+
$this->commandTester->execute(
145+
[
146+
'command' => $this->command->getName(),
147+
'bundle' => 'Acme\AcmeTestBundle',
148+
]
149+
);
150+
}
151+
137152
/**
138153
* Returns translations count.
139154
*

0 commit comments

Comments
 (0)