Fixed naming (phpci -> php-censor)
This commit is contained in:
parent
32f5c01728
commit
62bf63a06e
20 changed files with 56 additions and 59 deletions
|
|
@ -98,13 +98,13 @@ class InstallCommandTest extends \PHPUnit_Framework_TestCase
|
|||
{
|
||||
$config = [
|
||||
'--db-host' => 'localhost',
|
||||
'--db-name' => 'phpci1',
|
||||
'--db-user' => 'phpci2',
|
||||
'--db-pass' => 'phpci3',
|
||||
'--admin-mail' => 'phpci@phpci.test',
|
||||
'--admin-name' => 'phpci4',
|
||||
'--admin-pass' => 'phpci5',
|
||||
'--url' => 'http://test.phpci.org',
|
||||
'--db-name' => 'php-censor-db',
|
||||
'--db-user' => 'php-censor-user',
|
||||
'--db-pass' => 'php-censor-password',
|
||||
'--admin-mail' => 'admin@php-censor.local',
|
||||
'--admin-name' => 'admin',
|
||||
'--admin-pass' => 'admin-password',
|
||||
'--url' => 'http://php-censor.local',
|
||||
'--queue-disabled' => null,
|
||||
];
|
||||
|
||||
|
|
@ -232,14 +232,14 @@ class InstallCommandTest extends \PHPUnit_Framework_TestCase
|
|||
// We specified an input value for hostname.
|
||||
$dialog->expects($this->never())->method('ask');
|
||||
$dialog->expects($this->never())->method('askConfirmation');
|
||||
$dialog->expects($this->once())->method('askAndValidate')->willReturn('test@phpci.com');
|
||||
$dialog->expects($this->once())->method('askAndValidate')->willReturn('admin@php-censor.local');
|
||||
$dialog->expects($this->never())->method('askHiddenResponse');
|
||||
$dialog->expects($this->never())->method('askHiddenResponseAndValidate');
|
||||
|
||||
$this->executeWithoutParam('--admin-mail', $dialog);
|
||||
|
||||
// Check that specified arguments are correctly loaded.
|
||||
$this->assertEquals('test@phpci.com', $this->admin['mail']);
|
||||
$this->assertEquals('admin@php-censor.local', $this->admin['mail']);
|
||||
}
|
||||
|
||||
public function testAdminNameConfig()
|
||||
|
|
|
|||
|
|
@ -39,13 +39,13 @@ class BuildInterpolatorTest extends \PHPUnit_Framework_TestCase
|
|||
{
|
||||
$build = $this->prophesize('PHPCensor\\Model\\Build')->reveal();
|
||||
|
||||
$string = "Hello World";
|
||||
$string = "Hello World";
|
||||
$expectedOutput = "Hello World";
|
||||
|
||||
$this->testedInterpolator->setupInterpolationVars(
|
||||
$build,
|
||||
"/buildpath/",
|
||||
"phpci.com"
|
||||
"php-censor.local"
|
||||
);
|
||||
|
||||
$actualOutput = $this->testedInterpolator->interpolate($string);
|
||||
|
|
|
|||
|
|
@ -31,9 +31,9 @@ class MailerFactoryTest extends \PHPUnit_Framework_TestCase
|
|||
'smtp_address' => 'mail.example.com',
|
||||
'smtp_port' => 225,
|
||||
'smtp_encryption' => true,
|
||||
'smtp_username' => 'example.user',
|
||||
'smtp_password' => 'examplepassword',
|
||||
'default_mailto_address' => 'phpci@example.com',
|
||||
'smtp_username' => 'php-censor-user',
|
||||
'smtp_password' => 'php-censor-password',
|
||||
'default_mailto_address' => 'admin@php-censor.local',
|
||||
];
|
||||
|
||||
$factory = new MailerFactory(['email_settings' => $config]);
|
||||
|
|
@ -55,9 +55,9 @@ class MailerFactoryTest extends \PHPUnit_Framework_TestCase
|
|||
'smtp_address' => 'mail.example.com',
|
||||
'smtp_port' => 225,
|
||||
'smtp_encryption' => true,
|
||||
'smtp_username' => 'example.user',
|
||||
'smtp_password' => 'examplepassword',
|
||||
'default_mailto_address' => 'phpci@example.com',
|
||||
'smtp_username' => 'php-censor-user',
|
||||
'smtp_password' => 'php-censor-password',
|
||||
'default_mailto_address' => 'admin@php-censor.local',
|
||||
];
|
||||
|
||||
$factory = new MailerFactory(['email_settings' => $config]);
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@ class BuildStatusServiceTest extends \PHPUnit_Framework_TestCase
|
|||
{
|
||||
$build = $this->getBuild($buildConfigId);
|
||||
$service = new BuildStatusService(self::BRANCH, $this->project, $build);
|
||||
$service->setUrl('http://phpci.dev/');
|
||||
$service->setUrl('http://php-censor.local/');
|
||||
$this->assertEquals($expectedResult, $service->toArray());
|
||||
}
|
||||
|
||||
|
|
@ -159,7 +159,7 @@ class BuildStatusServiceTest extends \PHPUnit_Framework_TestCase
|
|||
'lastBuildLabel' => '',
|
||||
'lastBuildStatus' => '',
|
||||
'lastBuildTime' => '',
|
||||
'webUrl' => 'http://phpci.dev/build/view/77',
|
||||
'webUrl' => 'http://php-censor.local/build/view/77',
|
||||
)
|
||||
),
|
||||
'buildingStatusWithPrev' => array(
|
||||
|
|
@ -170,7 +170,7 @@ class BuildStatusServiceTest extends \PHPUnit_Framework_TestCase
|
|||
'lastBuildLabel' => 13,
|
||||
'lastBuildStatus' => 'Failure',
|
||||
'lastBuildTime' => '2014-10-13T13:13:13+0000',
|
||||
'webUrl' => 'http://phpci.dev/build/view/78',
|
||||
'webUrl' => 'http://php-censor.local/build/view/78',
|
||||
)
|
||||
),
|
||||
'successStatus' => array(
|
||||
|
|
@ -181,7 +181,7 @@ class BuildStatusServiceTest extends \PHPUnit_Framework_TestCase
|
|||
'lastBuildLabel' => 7,
|
||||
'lastBuildStatus' => 'Success',
|
||||
'lastBuildTime' => '2014-10-25T21:50:02+0000',
|
||||
'webUrl' => 'http://phpci.dev/build/view/7',
|
||||
'webUrl' => 'http://php-censor.local/build/view/7',
|
||||
)
|
||||
),
|
||||
'failureStatus' => array(
|
||||
|
|
@ -192,7 +192,7 @@ class BuildStatusServiceTest extends \PHPUnit_Framework_TestCase
|
|||
'lastBuildLabel' => 13,
|
||||
'lastBuildStatus' => 'Failure',
|
||||
'lastBuildTime' => '2014-10-13T13:13:13+0000',
|
||||
'webUrl' => 'http://phpci.dev/build/view/13',
|
||||
'webUrl' => 'http://php-censor.local/build/view/13',
|
||||
)
|
||||
),
|
||||
'pending' => array(
|
||||
|
|
@ -203,7 +203,7 @@ class BuildStatusServiceTest extends \PHPUnit_Framework_TestCase
|
|||
'lastBuildLabel' => 7,
|
||||
'lastBuildStatus' => 'Success',
|
||||
'lastBuildTime' => '2014-10-25T21:50:02+0000',
|
||||
'webUrl' => 'http://phpci.dev/build/view/1000',
|
||||
'webUrl' => 'http://php-censor.local/build/view/1000',
|
||||
)
|
||||
),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue