Skip to content

Releases: kununu/testing-bundle

Support only PHP 8.3

18 Sep 10:06
b21210c
Compare
Choose a tag to compare

BREAKING CHANGES

  • Only support PHP 8.3 - Make classes read-only when possible
    • Add types to constants
    • Upgrade PHPUnit to v11.3
      • Use static versions of asserts and expectations of invocations
    • Change CI pipeline to use PHP 8.3
    • Bump to use kununu/data-fixtures 12.0
  • Changes on AbstractTestCase and children (FixturesAwareTestCase and WebTestCase):
    • getFixturesContainer now has the Symfony ContainerInterface and not PSR interface as its return type
    • Add getServiceFromContainer
    • Add getParameterFromContainer
  • Add FixturesContainerGetterTrait to help getting common services from the test container:
    • getConnection to get a Doctrine DBAL connection
    • getCachePool to get a CacheItemPoolInterface
    • getElasticsearchClient to get an Elasticsearch client
    • getHttpClient to get a Symfony Http client
  • Update documentation

Drop support for PHP 8.0 and support Symfony 6.4

29 Feb 14:33
44e9567
Compare
Choose a tag to compare

BREAKING CHANGES

  • Remove support for PHP 8.0
  • Drop support for Symfony 4.4
  • Upgrade to only support Symfony 5.4 or 6.4
  • Upgrade kununu/data-fixtures to v11.0 (imply same breaking changes as of that version)
  • Use Symfony 6.4 components for development
  • Rename classes that had "ElasticSearch" to "Elasticsearch"
  • Upgrade to PHPUnit 10.5
  • Fix tests
  • Split test directories for unit and integration tests
  • Update documentation
  • Upgrade CI workflow to use PHP 8.1

Update continuous integration components

05 Jan 16:15
a8422e2
Compare
Choose a tag to compare

What's Changed

No code changes

Upgrade requirement of kununu/data-fixtures to v10.2.0

04 Jan 10:47
c0c4f2a
Compare
Choose a tag to compare

What's Changed

Full Changelog: v17.3.0...v17.4.0

Do not reload HTTP client fixtures on WebTestCase if no HTTP client fixtures are available

22 Dec 14:47
5b41739
Compare
Choose a tag to compare
  • Make sure that WebTestCase doesn't throw a ServiceNotFoundException if symfony/http-client is not installed

Fixes lost HTTP Client fixtures after Kernel reboot

20 Nov 16:13
126dfa4
Compare
Choose a tag to compare

What's Changed

  • Fix kernel reboot losing http fixtures
    • Fix problem in Symfony 5.x where calling WebTestCase::doRequest would lose the loaded http fixtures

Fix kernel already booted in WebTestCase::doRequest

22 Mar 09:29
2497a8e
Compare
Choose a tag to compare

What's Changed

  • Fix kernel already booted in WebTestCase::doRequest
    • Fix problem in Symfony 5.x where calling WebTestCase::doRequest would fail stating that kernel was already booted

Drop support for PHP 7.x

24 Feb 15:40
6dd9c68
Compare
Choose a tag to compare
  • Drop support for PHP 7.x
  • Small refactors to use PHP 8.0 features and optimize some code

Prevent errors on Symfony 5 when using WebTestCase

20 Feb 10:35
a36bd8a
Compare
Choose a tag to compare
  • Ensure Kernel is shutdown - prevent error for Symfony 5

Extend RequestBuilder with support for HTTP PATCH requests

07 Dec 16:56
21b1b42
Compare
Choose a tag to compare
  • Add factory method to create RequestBuilder objects for HTTP PATCH requests