VersionPress\Database\DbSchemaInfo::getAllEntityNames PHP Méthode

getAllEntityNames() public méthode

Gets all entities defined by the schema
public getAllEntityNames ( ) : array
Résultat array
    public function getAllEntityNames()
    {
        return array_keys($this->schema);
    }

Usage Example

 public static function assertFilesEqualDatabase()
 {
     HookMock::setUp(HookMock::TRUE_HOOKS);
     self::staticInitialization();
     $entityNames = self::$schemaInfo->getAllEntityNames();
     foreach ($entityNames as $entityName) {
         self::assertEntitiesEqualDatabase($entityName);
     }
     self::clearGlobalVariables();
     HookMock::tearDown();
 }
All Usage Examples Of VersionPress\Database\DbSchemaInfo::getAllEntityNames