We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9285ab5 commit 9ca0412Copy full SHA for 9ca0412
test/EntriesTest.php
@@ -150,11 +150,10 @@ public function testFindIncludeContentType() {
150
}
151
152
public function testFindIncludeEmbeddedItems() {
153
- $_entries = self::$Stack->ContentType('rte_embed')->Query()->toJSON()->includeEmbeddedItems()->find();
+ $_entries = self::$Stack->ContentType(CT_ContentType)->Query()->toJSON()->includeEmbeddedItems()->find();
154
155
for($i = 0; $i < count($_entries[0]); $i++) {
156
- print_r($_entries[0][$i]["rich_text_editor"]);
157
- if ($_entries[0][$i]["rich_text_editor"] !== "undefined") {
+ if ($_entries[0][$i]["rich_text_editor"]) {
158
$embedded = Contentstack::renderContent($_entries[0][$i]["rich_text_editor"], new Option($_entries[0][$i]));
159
160
0 commit comments