Skip to content

Commit

Permalink
Ignore line endings.
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseleite committed Dec 5, 2024
1 parent fe05bff commit c10b139
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions tests/StarterKits/InitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function it_can_init_basic_config()
$this->assertFileExists($configPath = $this->packagePath('starter-kit.yaml'));
$this->assertFileExists($composerJsonPath = $this->packagePath('composer.json'));

$this->assertEquals(<<<'YAML'
$this->assertStringEqualsStringIgnoringLineEndings(<<<'YAML'
# export_paths:
# - content
# - config/filesystems.php
Expand All @@ -68,7 +68,7 @@ public function it_can_init_basic_config()
# - vite.config.js
YAML, trim($this->files->get($configPath)));

$this->assertEquals(<<<'JSON'
$this->assertStringEqualsStringIgnoringLineEndings(<<<'JSON'
{
"name": "example/starter-kit-package",
"extra": {
Expand Down Expand Up @@ -101,7 +101,7 @@ public function it_can_interactively_init_basic_config()
$this->assertFileExists($configPath = $this->packagePath('starter-kit.yaml'));
$this->assertFileExists($composerJsonPath = $this->packagePath('composer.json'));

$this->assertEquals(<<<'YAML'
$this->assertStringEqualsStringIgnoringLineEndings(<<<'YAML'
# export_paths:
# - content
# - config/filesystems.php
Expand All @@ -115,7 +115,7 @@ public function it_can_interactively_init_basic_config()
# - vite.config.js
YAML, trim($this->files->get($configPath)));

$this->assertEquals(<<<'JSON'
$this->assertStringEqualsStringIgnoringLineEndings(<<<'JSON'
{
"name": "example/starter-kit-package",
"extra": {
Expand Down Expand Up @@ -147,7 +147,7 @@ public function it_can_init_with_custom_package_info()
$this->assertFileExists($configPath = $this->packagePath('starter-kit.yaml'));
$this->assertFileExists($composerJsonPath = $this->packagePath('composer.json'));

$this->assertEquals(<<<'JSON'
$this->assertStringEqualsStringIgnoringLineEndings(<<<'JSON'
{
"name": "statamic/starter-kit-cool-writings",
"extra": {
Expand Down Expand Up @@ -195,7 +195,7 @@ public function it_can_interactively_init_with_custom_package_info()
$this->assertFileExists($configPath = $this->packagePath('starter-kit.yaml'));
$this->assertFileExists($composerJsonPath = $this->packagePath('composer.json'));

$this->assertEquals(<<<'JSON'
$this->assertStringEqualsStringIgnoringLineEndings(<<<'JSON'
{
"name": "statamic/starter-kit-cool-writings",
"extra": {
Expand Down Expand Up @@ -224,7 +224,7 @@ public function it_can_init_updatable_kit()
$this->assertFileExists($composerJsonPath = $this->packagePath('composer.json'));
$this->assertFileExists($serviceProviderPath = $this->packagePath('src/ServiceProvider.php'));

$this->assertEquals(<<<'YAML'
$this->assertStringEqualsStringIgnoringLineEndings(<<<'YAML'
updatable: true
# export_paths:
# - content
Expand All @@ -239,7 +239,7 @@ public function it_can_init_updatable_kit()
# - vite.config.js
YAML, trim($this->files->get($configPath)));

$this->assertEquals(<<<'JSON'
$this->assertStringEqualsStringIgnoringLineEndings(<<<'JSON'
{
"name": "example/starter-kit-package",
"extra": {
Expand All @@ -266,7 +266,7 @@ public function it_can_init_updatable_kit()
}
JSON, trim($this->files->get($composerJsonPath)));

$this->assertEquals(<<<'PHP'
$this->assertStringEqualsStringIgnoringLineEndings(<<<'PHP'
<?php
namespace Example\StarterKitNamespace;
Expand Down Expand Up @@ -303,7 +303,7 @@ public function it_can_interactively_init_updatable_kit()
$this->assertFileExists($composerJsonPath = $this->packagePath('composer.json'));
$this->assertFileExists($serviceProviderPath = $this->packagePath('src/ServiceProvider.php'));

$this->assertEquals(<<<'YAML'
$this->assertStringEqualsStringIgnoringLineEndings(<<<'YAML'
updatable: true
# export_paths:
# - content
Expand All @@ -318,7 +318,7 @@ public function it_can_interactively_init_updatable_kit()
# - vite.config.js
YAML, trim($this->files->get($configPath)));

$this->assertEquals(<<<'JSON'
$this->assertStringEqualsStringIgnoringLineEndings(<<<'JSON'
{
"name": "example/starter-kit-package",
"extra": {
Expand All @@ -345,7 +345,7 @@ public function it_can_interactively_init_updatable_kit()
}
JSON, trim($this->files->get($composerJsonPath)));

$this->assertEquals(<<<'PHP'
$this->assertStringEqualsStringIgnoringLineEndings(<<<'PHP'
<?php
namespace Example\StarterKitNamespace;
Expand Down Expand Up @@ -383,7 +383,7 @@ public function it_can_init_updatable_kit_with_custom_package_info()
$this->assertFileExists($composerJsonPath = $this->packagePath('composer.json'));
$this->assertFileExists($serviceProviderPath = $this->packagePath('src/ServiceProvider.php'));

$this->assertEquals(<<<'JSON'
$this->assertStringEqualsStringIgnoringLineEndings(<<<'JSON'
{
"name": "statamic-rad-pack/starter-kit-cool-writings",
"extra": {
Expand All @@ -410,7 +410,7 @@ public function it_can_init_updatable_kit_with_custom_package_info()
}
JSON, trim($this->files->get($composerJsonPath)));

$this->assertEquals(<<<'PHP'
$this->assertStringEqualsStringIgnoringLineEndings(<<<'PHP'
<?php
namespace StatamicRadPack\CoolWritings;
Expand Down Expand Up @@ -447,7 +447,7 @@ public function it_can_interactively_init_updatable_kit_with_custom_package_info
$this->assertFileExists($composerJsonPath = $this->packagePath('composer.json'));
$this->assertFileExists($serviceProviderPath = $this->packagePath('src/ServiceProvider.php'));

$this->assertEquals(<<<'JSON'
$this->assertStringEqualsStringIgnoringLineEndings(<<<'JSON'
{
"name": "statamic-rad-pack/starter-kit-cool-writings",
"extra": {
Expand All @@ -474,7 +474,7 @@ public function it_can_interactively_init_updatable_kit_with_custom_package_info
}
JSON, trim($this->files->get($composerJsonPath)));

$this->assertEquals(<<<'PHP'
$this->assertStringEqualsStringIgnoringLineEndings(<<<'PHP'
<?php
namespace StatamicRadPack\CoolWritings;
Expand Down Expand Up @@ -564,7 +564,7 @@ public function it_can_overwrite_existing_files_interactively()
$this->assertFileExists($configPath = $this->packagePath('starter-kit.yaml'));
$this->assertFileExists($composerJsonPath = $this->packagePath('composer.json'));

$this->assertEquals(<<<'YAML'
$this->assertStringEqualsStringIgnoringLineEndings(<<<'YAML'
# export_paths:
# - content
# - config/filesystems.php
Expand All @@ -578,7 +578,7 @@ public function it_can_overwrite_existing_files_interactively()
# - vite.config.js
YAML, trim($this->files->get($configPath)));

$this->assertEquals(<<<'JSON'
$this->assertStringEqualsStringIgnoringLineEndings(<<<'JSON'
{
"name": "statamic/starter-kit-cool-writings",
"extra": {
Expand Down Expand Up @@ -608,7 +608,7 @@ public function it_always_overwrites_existing_files_when_run_non_interactively()
$this->assertFileExists($configPath = $this->packagePath('starter-kit.yaml'));
$this->assertFileExists($composerJsonPath = $this->packagePath('composer.json'));

$this->assertEquals(<<<'YAML'
$this->assertStringEqualsStringIgnoringLineEndings(<<<'YAML'
# export_paths:
# - content
# - config/filesystems.php
Expand All @@ -622,7 +622,7 @@ public function it_always_overwrites_existing_files_when_run_non_interactively()
# - vite.config.js
YAML, trim($this->files->get($configPath)));

$this->assertEquals(<<<'JSON'
$this->assertStringEqualsStringIgnoringLineEndings(<<<'JSON'
{
"name": "statamic/starter-kit-cool-writings",
"extra": {
Expand Down

0 comments on commit c10b139

Please sign in to comment.