File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -304,7 +304,7 @@ public function render(bool $blankIncludes = false): string
304304 if ($ blankIncludes ) {
305305 $ content = $ this ->blankPageIncludes ($ content );
306306 } else {
307- for ($ includeDepth = 0 ; $ includeDepth <= 3 ; $ includeDepth ++) {
307+ for ($ includeDepth = 0 ; $ includeDepth < 3 ; $ includeDepth ++) {
308308 $ content = $ this ->parsePageIncludes ($ content );
309309 }
310310 }
Original file line number Diff line number Diff line change @@ -116,7 +116,8 @@ public function test_page_includes_can_be_nested_up_to_three_times()
116116 $ page ->save ();
117117
118118 $ pageResp = $ this ->asEditor ()->get ($ page ->getUrl ());
119- $ this ->withHtml ($ pageResp )->assertElementContains ('#bkmrk-test ' , 'Hello Barry Hello Barry Hello Barry ' . $ tag );
119+ $ this ->withHtml ($ pageResp )->assertElementContains ('#bkmrk-test ' , 'Hello Barry Hello Barry Hello Barry Hello Barry ' . $ tag );
120+ $ this ->withHtml ($ pageResp )->assertElementNotContains ('#bkmrk-test ' , 'Hello Barry Hello Barry Hello Barry Hello Barry Hello Barry ' . $ tag );
120121 }
121122
122123 public function test_page_content_scripts_removed_by_default ()
You can’t perform that action at this time.
0 commit comments