Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
3e0cfa6c32
commit
1336f44a68
|
@ -76,7 +76,7 @@ class SignAppTest extends TestCase {
|
||||||
->method('writeln')
|
->method('writeln')
|
||||||
->with('This command requires the --path, --privateKey and --certificate.');
|
->with('This command requires the --path, --privateKey and --certificate.');
|
||||||
|
|
||||||
$this->assertNull(self::invokePrivate($this->signApp, 'execute', [$inputInterface, $outputInterface]));
|
$this->assertSame(1, self::invokePrivate($this->signApp, 'execute', [$inputInterface, $outputInterface]));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testExecuteWithMissingPrivateKey() {
|
public function testExecuteWithMissingPrivateKey() {
|
||||||
|
@ -104,7 +104,7 @@ class SignAppTest extends TestCase {
|
||||||
->method('writeln')
|
->method('writeln')
|
||||||
->with('This command requires the --path, --privateKey and --certificate.');
|
->with('This command requires the --path, --privateKey and --certificate.');
|
||||||
|
|
||||||
$this->assertNull(self::invokePrivate($this->signApp, 'execute', [$inputInterface, $outputInterface]));
|
$this->assertSame(1, self::invokePrivate($this->signApp, 'execute', [$inputInterface, $outputInterface]));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testExecuteWithMissingCertificate() {
|
public function testExecuteWithMissingCertificate() {
|
||||||
|
@ -132,7 +132,7 @@ class SignAppTest extends TestCase {
|
||||||
->method('writeln')
|
->method('writeln')
|
||||||
->with('This command requires the --path, --privateKey and --certificate.');
|
->with('This command requires the --path, --privateKey and --certificate.');
|
||||||
|
|
||||||
$this->assertNull(self::invokePrivate($this->signApp, 'execute', [$inputInterface, $outputInterface]));
|
$this->assertSame(1, self::invokePrivate($this->signApp, 'execute', [$inputInterface, $outputInterface]));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testExecuteWithNotExistingPrivateKey() {
|
public function testExecuteWithNotExistingPrivateKey() {
|
||||||
|
@ -166,7 +166,7 @@ class SignAppTest extends TestCase {
|
||||||
->method('writeln')
|
->method('writeln')
|
||||||
->with('Private key "privateKey" does not exists.');
|
->with('Private key "privateKey" does not exists.');
|
||||||
|
|
||||||
$this->assertNull(self::invokePrivate($this->signApp, 'execute', [$inputInterface, $outputInterface]));
|
$this->assertSame(1, self::invokePrivate($this->signApp, 'execute', [$inputInterface, $outputInterface]));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testExecuteWithNotExistingCertificate() {
|
public function testExecuteWithNotExistingCertificate() {
|
||||||
|
@ -205,7 +205,7 @@ class SignAppTest extends TestCase {
|
||||||
->method('writeln')
|
->method('writeln')
|
||||||
->with('Certificate "certificate" does not exists.');
|
->with('Certificate "certificate" does not exists.');
|
||||||
|
|
||||||
$this->assertNull(self::invokePrivate($this->signApp, 'execute', [$inputInterface, $outputInterface]));
|
$this->assertSame(1, self::invokePrivate($this->signApp, 'execute', [$inputInterface, $outputInterface]));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testExecuteWithException() {
|
public function testExecuteWithException() {
|
||||||
|
|
|
@ -66,7 +66,7 @@ class SignCoreTest extends TestCase {
|
||||||
->method('writeln')
|
->method('writeln')
|
||||||
->with('--privateKey, --certificate and --path are required.');
|
->with('--privateKey, --certificate and --path are required.');
|
||||||
|
|
||||||
$this->assertNull(self::invokePrivate($this->signCore, 'execute', [$inputInterface, $outputInterface]));
|
$this->assertSame(1, self::invokePrivate($this->signCore, 'execute', [$inputInterface, $outputInterface]));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testExecuteWithMissingCertificate() {
|
public function testExecuteWithMissingCertificate() {
|
||||||
|
@ -89,7 +89,7 @@ class SignCoreTest extends TestCase {
|
||||||
->method('writeln')
|
->method('writeln')
|
||||||
->with('--privateKey, --certificate and --path are required.');
|
->with('--privateKey, --certificate and --path are required.');
|
||||||
|
|
||||||
$this->assertNull(self::invokePrivate($this->signCore, 'execute', [$inputInterface, $outputInterface]));
|
$this->assertSame(1, self::invokePrivate($this->signCore, 'execute', [$inputInterface, $outputInterface]));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testExecuteWithNotExistingPrivateKey() {
|
public function testExecuteWithNotExistingPrivateKey() {
|
||||||
|
@ -123,7 +123,7 @@ class SignCoreTest extends TestCase {
|
||||||
->method('writeln')
|
->method('writeln')
|
||||||
->with('Private key "privateKey" does not exists.');
|
->with('Private key "privateKey" does not exists.');
|
||||||
|
|
||||||
$this->assertNull(self::invokePrivate($this->signCore, 'execute', [$inputInterface, $outputInterface]));
|
$this->assertSame(1, self::invokePrivate($this->signCore, 'execute', [$inputInterface, $outputInterface]));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testExecuteWithNotExistingCertificate() {
|
public function testExecuteWithNotExistingCertificate() {
|
||||||
|
@ -162,7 +162,7 @@ class SignCoreTest extends TestCase {
|
||||||
->method('writeln')
|
->method('writeln')
|
||||||
->with('Certificate "certificate" does not exists.');
|
->with('Certificate "certificate" does not exists.');
|
||||||
|
|
||||||
$this->assertNull(self::invokePrivate($this->signCore, 'execute', [$inputInterface, $outputInterface]));
|
$this->assertSame(1, self::invokePrivate($this->signCore, 'execute', [$inputInterface, $outputInterface]));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testExecuteWithException() {
|
public function testExecuteWithException() {
|
||||||
|
|
Loading…
Reference in New Issue