<?php
namespace Elementor\Testing\Modules\Library\Documents;

use Elementor\Modules\Library\Documents\Section;
use ElementorEditorTesting\Elementor_Test_Base;

class Elementor_Test_Section extends Elementor_Test_Base {

	/** @var Section */
	private static $section;

	public static function setUpBeforeClass(): void {
		self::$section = new Section();

		parent::setUpBeforeClass();
	}

	public function test_should_return_name() {
		$name = self::$section->get_name();

		$this->assertEquals( 'section', $name );
	}

	public function test_should_return_title() {
		$title = Section::get_title();

		$this->assertEquals( esc_html__( 'Section', 'elementor' ), $title );
	}
}
