Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am amateescu on github.
  • I am amateescu (https://keybase.io/amateescu) on keybase.
  • I have a public key ASCymOYdvffZRDbiw6ygwOAR6RaQmof9qKE49gj-RbekoAo

To claim this, I am signing this object:

diff --git a/core/scripts/run-tests.sh b/core/scripts/run-tests.sh
index 49b1a44..d8f471f 100755
--- a/core/scripts/run-tests.sh
+++ b/core/scripts/run-tests.sh
@@ -680,6 +680,7 @@ function simpletest_script_get_test_list() {
simpletest_script_print_error('No valid tests were specified.');
exit;
}
+ // I only want to run one test class! :)
+ $test_list = array('Drupal\book\Tests\BookTest');
@amateescu
amateescu / gist:4168320
Created November 29, 2012 11:18
Entity bundles as plugins architecture
- introduce a EntityBundle plugin type
- create a derivative class that provides the list of bundles for all entity types that
a) have no default bundles
b) have bundles defined by a config entity type
- the advantage of using the plugin system is that it automatically gives us a true entity sub-type concept
i.e.
/**
* @Plugin(