Skip to content

Testing

phil/taxonomy-bundle
AreaWhat is covered
The entities, ResourceReferenceEvery check and bound; paths, depth, moves and cycles; the mapping
Taxonomy with DoctrineTaxonomyRepositoryOn SQLite in memory: tags found, given, renamed, merged; categories created, translated, moved, merged with one read of the tree and one flush; names read in their languages only; branches; everything stored
TagsType, CategoryTypeText and lists; the tree indented in a language, its translations read once; choices given; several; the locale option
PhilTaxonomyBundleServices and the mapping

A functional suite boots a kernel with FrameworkBundle, DoctrineBundle on SQLite and the bundle: it tags and categorizes a resource, picks a category in fr_CA, and reads the French help.

vendor/bin/phpunit packages/taxonomy-bundle/tests

Benchmarks

The phpbench subjects in tests/Benchmark measure the hot paths at several sizes. From the monorepo root:

composer bench -- packages/taxonomy-bundle/tests/Benchmark