first commit

This commit is contained in:
2024-07-15 11:28:08 +02:00
commit f52d538ea5
21891 changed files with 6161164 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
<?php
namespace Elementor\Testing\Traits;
trait Elementor_Library {
/**
* Asserts that a type is registered in documents
*
* @param string $type_name
*/
private function assertDocumentTypeRegistered( $type_name ) {
if ( ! is_string( $type_name ) ) {
throw \PHPUnit_Util_InvalidArgumentHelper::factory(
1,
'only string'
);
}
self::assertNotNull( self::elementor()->documents->get_document_type( $type_name ) );
}
}