This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* WordPress dependencies | |
*/ | |
import { isValidBlockContent } from '@wordpress/blocks'; | |
import { createElement } from '@wordpress/element'; | |
describe( 'isValidBlockContent', () => { | |
beforeAll( () => { | |
// Load all hooks that modify blocks | |
require( '../../packages/editor/src/hooks' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//do not test like this please! | |
test("Form component value", () => { | |
//Props with sample data | |
const props = { | |
defaultValue: "Food", | |
className: "wp-blocks-tooths", | |
id: "something" | |
}; | |
//Render component |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Adapted from https://github.com/pantheon-systems/wp-redis/blob/v0.6.1/behat.yml | |
default: | |
suites: | |
default: | |
paths: | |
- tests/behat | |
contexts: | |
- Behat\MinkExtension\Context\MinkContext | |
- PantheonSystems\PantheonWordPressUpstreamTests\Behat\AdminLogIn | |
core: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "php_version: 5.6" >> pantheon.yml | |
git add pantheon.yml | |
git commit -m 'Setting php 5.6' | |
git push | |
sleep 30 | |
for i in $(seq 20); do | |
echo "Site install $i in PHP 5.6" | |
terminus drush "si minimal -y" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{# | |
I suspect Drupal site builders will eventually to be able | |
to put block instances into twig files without being limited | |
to a theme's regions. Calling a function to print them | |
anywhere is farirly simple. | |
#} | |
{{ drupal_block_placement('bartik_breadcrumbs') }} |