Skip to content

Commit 4004b4a

Browse files
committed
test
1 parent 1c52525 commit 4004b4a

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

tests/src/Stubs/Blocks/ParagraphData.php

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,23 @@
22

33
namespace Yuges\Contentable\Tests\Stubs\Blocks;
44

5+
use Yuges\Contentable\Abstracts\BlockData;
56
use Yuges\Contentable\Tests\Stubs\Enums\BlockType;
67

7-
class ParagraphData extends \Yuges\Contentable\Data\Blocks\ParagraphData
8+
class ParagraphData extends BlockData
89
{
9-
protected const BlockType TYPE = BlockType::Delimiter;
10+
protected const BlockType TYPE = BlockType::Paragraph;
1011

1112
public function __construct(
1213
public ?string $text = '',
1314
) {
14-
parent::__construct($text);
15+
parent::__construct();
16+
}
17+
18+
public function getData(): array
19+
{
20+
return [
21+
'text' => $this->text,
22+
];
1523
}
1624
}

0 commit comments

Comments
 (0)