-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge unit tests into single feature test
- Loading branch information
1 parent
4fdab6e
commit c455d1c
Showing
10 changed files
with
55 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
|
||
namespace Tests\Feature; | ||
|
||
use Tests\TestCase; | ||
|
||
use Hyde\Framework\Services\Markdown\Shortcodes\DangerColoredBlockquote; | ||
use Hyde\Framework\Services\Markdown\Shortcodes\SuccessColoredBlockquote; | ||
use Hyde\Framework\Services\Markdown\Shortcodes\InfoColoredBlockquote; | ||
use Hyde\Framework\Services\Markdown\Shortcodes\WarningColoredBlockquote; | ||
|
||
|
||
/** | ||
* Class ColoredBlockquoteShortcodesTest. | ||
* | ||
* @covers \Hyde\Framework\Services\Markdown\Shortcodes\AbstractColoredBlockquote | ||
* @covers \Hyde\Framework\Services\Markdown\Shortcodes\DangerColoredBlockquote | ||
* @covers \Hyde\Framework\Services\Markdown\Shortcodes\SuccessColoredBlockquote | ||
* @covers \Hyde\Framework\Services\Markdown\Shortcodes\InfoColoredBlockquote | ||
* @covers \Hyde\Framework\Services\Markdown\Shortcodes\WarningColoredBlockquote | ||
*/ | ||
class ColoredBlockquoteShortcodesTest extends TestCase | ||
{ | ||
public function test_resolve_danger() | ||
{ | ||
$this->assertEquals('<blockquote class="danger">foo</blockquote>', | ||
DangerColoredBlockquote::resolve('>danger foo')); | ||
} | ||
|
||
public function test_resolve_success() | ||
{ | ||
$this->assertEquals('<blockquote class="success">foo</blockquote>', | ||
SuccessColoredBlockquote::resolve('>success foo')); | ||
} | ||
|
||
public function test_resolve_info() | ||
{ | ||
$this->assertEquals('<blockquote class="info">foo</blockquote>', | ||
InfoColoredBlockquote::resolve('>info foo')); | ||
} | ||
|
||
public function test_resolve_warning() | ||
{ | ||
$this->assertEquals('<blockquote class="warning">foo</blockquote>', | ||
WarningColoredBlockquote::resolve('>warning foo')); | ||
} | ||
|
||
} |
18 changes: 0 additions & 18 deletions
18
tests/Unit/Markdown/Shortcodes/DangerColoredBlockquoteTest.php
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
tests/Unit/Markdown/Shortcodes/InfoColoredBlockquoteTest.php
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
tests/Unit/Markdown/Shortcodes/SuccessColoredBlockquoteTest.php
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
tests/Unit/Markdown/Shortcodes/WarningColoredBlockquoteTest.php
This file was deleted.
Oops, something went wrong.