Skip to content

Commit

Permalink
MediaEmbed: updated legacy test
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshyPHP committed Dec 3, 2023
1 parent d1cd8b3 commit 1aaaa05
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/testdox.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3795,7 +3795,7 @@ Configurable (s9e\TextFormatter\Tests\Configurator\Traits\Configurable)
[x] __get() throws a RuntimeException if the property does not exist
[x] __get($k) returns null if the property is null
[x] __set('foo', 'bar') calls setFoo('bar') if it exists
[x] __set() can create new properties
[ ] __set() can create new properties
[x] __set() can replace an instance of Foo with another instance of Foo
[x] __set() can replace an instance of Foo with an instance of FooPlus, which extends Foo
[x] __set() throws an exception if an instance of Foo would be replaced by an instance of Bar
Expand Down Expand Up @@ -7901,7 +7901,7 @@ Unformatted (s9e\TextFormatter\Tests\Renderers\Unformatted)
XSLT (s9e\TextFormatter\Tests\Renderers\XSLT)
[x] Is serializable
[x] Does not serialize the XSLTProcessor instance
[x] Preserves other properties during serialization
[ ] Preserves other properties during serialization
[x] setParameter() accepts values that contain both types of quotes but replaces ASCII character " with Unicode character 0xFF02 because of https://bugs.php.net/64137
[x] Does not output </embed> end tags
[x] Does not improperly replace single quotes inside attribute values
Expand Down
5 changes: 3 additions & 2 deletions tests/Plugins/MediaEmbed/ParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5514,11 +5514,12 @@ function ($configurator)
],
[
'<r><ODYSEE id="8726b01100463c4e254a38c3108ef3e05791aeda" name="Deni-Juric-Goal-2-0-%C5%A0IBENIK-vs-SLAVEN-Apr21">https://odysee.com/@ozgoals:a/Deni-Juric-Goal-2-0-%C5%A0IBENIK-vs-SLAVEN-Apr21:8</ODYSEE></r>',
'<span data-s9e-mediaembed="odysee" style="display:inline-block;width:100%;max-width:640px"><span style="display:block;overflow:hidden;position:relative;padding-bottom:56.25%"><iframe allowfullscreen="" loading="lazy" scrolling="no" style="border:0;height:100%;left:0;position:absolute;width:100%" src="https://odysee.com/$/embed/Deni-Juric-Goal-2-0-%C5%A0IBENIK-vs-SLAVEN-Apr21/8726b01100463c4e254a38c3108ef3e05791aeda"></iframe></span></span>',
'(<span data-s9e-mediaembed="odysee" style="display:inline-block;width:100%;max-width:640px"><span style="display:block;overflow:hidden;position:relative;padding-bottom:56.25%"><iframe allowfullscreen="" loading="lazy" scrolling="no" style="border:0;height:100%;left:0;position:absolute;width:100%" src="https://odysee.com/(?:\\$|%24)/embed/Deni-Juric-Goal-2-0-%C5%A0IBENIK-vs-SLAVEN-Apr21/8726b01100463c4e254a38c3108ef3e05791aeda"></iframe></span></span>)',
function ($configurator)
{
$configurator->MediaEmbed->add('odysee');
}
},
'assertMatchesRegularExpression'
],
[
'<r><ODYSEE id="8726b01100463c4e254a38c3108ef3e05791aeda">https://odysee.com/@ozgoals:a/Deni-Juric-Goal-2-0-%C5%A0IBENIK-vs-SLAVEN-Apr21:8</ODYSEE></r>',
Expand Down

0 comments on commit 1aaaa05

Please sign in to comment.