mirror of
https://github.com/WordPress/create-block-theme.git
synced 2025-10-03 16:11:13 +08:00
* refactor ThemeReadme class * update phpunit tests config to make it more similar to core * Add tests for ThemeReadme class public methods * simplify copyright text creation * Fix cloned theme reference to original theme * updates comment * Theme_Reade::update receives a parameter with the readme content. * remove not so useful write method * Moved readme data fetching logic from utils to readme class and fleshed it out to get all sections. * Fetch and use the readme data in the metadata panel (for recomended plugins) --------- Co-authored-by: Jason Crist <jcrist@pbking.com>
20 lines
533 B
XML
20 lines
533 B
XML
<?xml version="1.0"?>
|
|
<phpunit
|
|
bootstrap="tests/bootstrap.php"
|
|
backupGlobals="false"
|
|
colors="true"
|
|
convertErrorsToExceptions="true"
|
|
convertNoticesToExceptions="true"
|
|
convertWarningsToExceptions="true"
|
|
printerClass="Sempro\PHPUnitPrettyPrinter\PrettyPrinterForPhpUnit9"
|
|
>
|
|
<testsuites>
|
|
<testsuite name="testing">
|
|
<directory suffix=".php">./tests/</directory>
|
|
<exclude>./tests/test-sample.php</exclude>
|
|
</testsuite>
|
|
</testsuites>
|
|
<php>
|
|
<env name="PHPUNIT_PRETTY_PRINT_PROGRESS" value="true" />
|
|
</php>
|
|
</phpunit>
|