mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-15 10:04:13 -08:00
21 lines
576 B
PHP
21 lines
576 B
PHP
|
<?php
|
||
|
|
||
|
namespace Tests\Unit\BladeComponents;
|
||
|
|
||
|
use Illuminate\Support\Facades\View;
|
||
|
use Illuminate\Support\Str;
|
||
|
use Tests\TestCase;
|
||
|
|
||
|
class IconComponentTest extends TestCase
|
||
|
{
|
||
|
public function testIconComponentDoesNotEndInNewline()
|
||
|
{
|
||
|
$renderedTemplateString = View::make('blade.icon', ['type' => 'checkout'])->render();
|
||
|
|
||
|
$this->assertFalse(
|
||
|
Str::endsWith($renderedTemplateString, PHP_EOL),
|
||
|
'Newline found at end of icon component. Bootstrap tables will not render if there is a newline at the end of the file.'
|
||
|
);
|
||
|
}
|
||
|
}
|