This repository has been archived by the owner on Sep 18, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from deanblackborough/v3.17.0
v3.17.0
- Loading branch information
Showing
17 changed files
with
479 additions
and
216 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace DBlackborough\Quill\Tests\Attributes\Html; | ||
|
||
require __DIR__ . '../../../../vendor/autoload.php'; | ||
|
||
use DBlackborough\Quill\Render as QuillRender; | ||
|
||
final class BoldColorTest extends \PHPUnit\Framework\TestCase | ||
{ | ||
private $delta_bold_text = '{"ops":[{"attributes":{"color":"#66b966","bold":true},"insert":"My Text"}]}'; | ||
|
||
private $expected_href = '<p><strong style="color: #66b966">My Text</strong></p>'; | ||
|
||
public function testBoldColor() | ||
{ | ||
$result = null; | ||
|
||
try { | ||
$quill = new QuillRender($this->delta_bold_text); | ||
$result = $quill->render(); | ||
} catch (\Exception $e) { | ||
$this->fail(__METHOD__ . 'failure, ' . $e->getMessage()); | ||
} | ||
|
||
$this->assertEquals($this->expected_href, trim($result), __METHOD__ . ' BoldColorText'); | ||
} | ||
} | ||
|
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
Oops, something went wrong.