Marco Pivetta
7544934158
Removing note that is not valid anymore
2016-07-07 20:39:52 +02:00
Marco Pivetta
2829174267
Simplified test: invalid entities must make it in the UnitOfWork
manually, via registerManaged
2016-07-07 20:28:21 +02:00
Marco Pivetta
5b8b548bd4
When invalid (null) identifiers are provided, an exception should be thrown
2016-07-07 20:08:24 +02:00
Marco Pivetta
9abccba109
When invalid (null) identifiers are provided, an exception should be thrown
2016-07-07 19:58:43 +02:00
Marco Pivetta
da7582d329
Typo fix: s/$booleanTrue/$booleanFalse (C&P mistake)
2016-07-07 19:43:03 +02:00
Marco Pivetta
aa1fda6d5f
Checking for boolean true/false identifiers
2016-07-07 19:38:48 +02:00
Marco Pivetta
29d9f344e8
Non-empty composite key identifiers should also be supported
2016-07-07 19:35:39 +02:00
Marco Pivetta
549bfe127c
Correcting test case: expecting identifier hashes to support empty strings
2016-07-07 19:34:24 +02:00
Marco Pivetta
12789ee6ca
Basic tests around addToIdentityMap
with valid string identifiers (empty string allowed)
2016-07-07 19:27:49 +02:00
Marco Pivetta
18e3cb4440
#5867 @group
annotations, describing scenario
2016-06-19 12:44:19 +02:00
Marco Pivetta
aa8cf7bae9
#5867 simplifying test case by inlining all required models into the test case
2016-06-19 12:42:49 +02:00
Luís Cobucci
27f3bc1e2c
Allow the usage of embedded objects on parent classes.
...
The `ClassMetadataInfo` was always using the "current class" to
fetch the reflection of a property even when a field is declared
on the parent class (which causes `ReflectionProperty` to throw
an exception).
2016-06-19 12:35:57 +02:00
Marco Pivetta
765e102d01
Merge pull request #5856 from doctrine/fix/#5854-default-query-cache-test-using-wrong-reflection-instance
...
#5854 workaround to avoid populating Second Level Cache from DQL queries with multiple nested DQL aliases
2016-06-19 08:48:38 +02:00
Sebastian Bergmann
9da83cfae8
Make test suite compatible with PHPUnit 5.4.
...
* Use createMock() and getMockBuilder() instead of getMock()
* Use expectException() and expectExceptionMessage() instead of setExpectedException()
2016-06-18 13:01:59 +02:00
FabioBatSilva
163dac4a91
#5854 - Fix SLC queries with multiple nested DQL aliases
2016-06-17 00:11:18 -04:00
Marco Pivetta
be090e2f75
#5854 removing failure caused by a ReflectionProperty
being instantiated against the wrong class name in a test
2016-06-16 23:00:59 -04:00
Thomas Ploch
ea788fb734
Exporters should only inspect joinColumns
for owning side in bi-directional OneToOne
...
rebased commits:
- Added test case for bi-directional OneToOne in YamlExporter
- Only inspect joinColumns for owning side in bi-directional OneToOne in YamlExporter
- Adding bi-directional test case without joinColumn to XmlExporter test
- Same testcase also applied to PhpExporter
- Fixing bi-directional issue in PhpExporter when inspecting joinColumns index
- Implemented @Ocramius suggestions
2016-06-08 13:24:43 +02:00
Marco Pivetta
34d8e00df7
#5849 #5850 correcting test scenario: identity map could not be built with auto-generated identities+persist
2016-06-06 00:08:26 +02:00
Marco Pivetta
313e4a33e5
#5849 #5850 adding group annotations to the newly introduced test case
2016-06-05 23:54:16 +02:00
Rico Humme
3df494ddc8
Test Case for Clear entityInsertions for specific entityName
2016-06-05 23:16:09 +02:00
Luís Otávio Cobucci Oblonczyk
2c1818d513
Fix typo
2016-06-05 10:25:08 +00:00
Mikhail Shamin
b173763bbb
Remove full qualified class names in tests
2016-05-11 03:00:44 +07:00
Mikhail Shamin
bf322b903d
Optimize imports. Remove full qualified class names
2016-05-11 01:55:12 +07:00
Matteo Beccati
82588c0af9
Fixed test failing due to changes in AnnotationReader
...
Doctrine\Tests\ORM\Mapping\AnnotationDriverTest::testLoadMetadataForNonEntityThrowsException
Argument 1 passed to Doctrine\Common\Annotations\AnnotationReader::__construct() must be an instance of Doctrine\Common\Annotations\DocParser, instance of Doctrine\Common\Cache\ArrayCache given, called in .../tests/Doctrine/Tests/ORM/Mapping/AnnotationDriverTest.php on line 19 and defined
See: https://revive.beccati.com/bamboo/browse/PHP-DOCTR-PHP55-646/test/case/11813971
2016-02-29 11:06:23 +01:00
Patrick Poulain
9461839d42
Fix PostgreSql Tests
2016-02-15 21:07:09 +01:00
Patrick Poulain
e8296e8e7d
Fix ORM Driver Tests
2016-02-15 21:06:34 +01:00
Patrick Poulain
cbde629bf0
Fix MySql Tests
2016-02-15 21:06:01 +01:00
Jeremy Giberson
dd3f67d862
updated manytomany so it maps field names to column names in criteria ordering
2016-02-11 13:39:31 -07:00
Jeremy Giberson
0feaf92348
improve test readability
2016-02-10 20:27:43 -07:00
Jeremy Giberson
ae785757a1
Merge branch 'fix-many-many-criteria' of github.com:petitchevalroux/doctrine2 into many-to-many-criteria-fixes
...
Conflicts:
lib/Doctrine/ORM/Persisters/Collection/ManyToManyPersister.php
2016-02-10 20:04:48 -07:00
Jeremy Giberson
0adeade045
merged git@github.com:SammyK/doctrine2.git:many-to-many-order-by-fix
2016-02-10 19:52:03 -07:00
Jeremy Giberson
f0accca99d
Merge branch 'DDC-3719-fix' of github.com:jeanCarloMachado/doctrine2 into many-to-many-criteria-fixes
2016-02-10 19:40:45 -07:00
Jean Carlo Machado
468fe315ba
fixed indentation
2016-01-29 10:03:44 -02:00
Jean Carlo Machado
375b0369ae
added test of matching non-owing side with criteria
2016-01-28 19:36:52 -02:00
Alessandro Lai
d7e7baf2a2
Regression test: HAVING clause does not translate variable name when used with * and / math operators
2016-01-08 17:56:41 +01:00
Bill Schaller
d97fad26a5
Add tests to ensure DiscriminatorColumn is optional, and that optional params type and length have proper defaults.
2016-01-05 12:29:49 -05:00
Marco Pivetta
e0148f14e2
doctrine/common 2.6.0 compat
...
Less strict assertion - no need to check the exact file name
2015-12-25 15:20:35 +01:00
Marco Pivetta
6e6d3e27ab
Common 2.6 compatibility
...
Internal structure of the ArrayCache has changed, therefore we should fix the tests depending on it instead
2015-12-25 15:10:21 +01:00
Marco Pivetta
0c6b510c2a
#1572 - test coverage - interfaces should also resolve to target entities when in DQL
2015-12-11 21:34:11 +01:00
Marco Pivetta
b2a6f8aa0e
Adding test case for fetching column names by field names
2015-12-11 20:48:59 +01:00
Marco Pivetta
3971e8c55b
Merge branch 'hotfix/#1573-merge-associated-versioned-entity'
...
Close #1573
2015-12-11 20:17:05 +01:00
Marco Pivetta
996db42029
#1573 - correcting test asset namespace, removing unused properties and bi-directional association
2015-12-11 20:14:53 +01:00
Marco Pivetta
cf3a54ab95
Removing empty newline
2015-12-11 20:00:59 +01:00
Marco Pivetta
342ab2f7f1
Correcting minor test case incompatibility with XDebug 2.4.x
...
In PHP 5.x + XDebug < 2.4, the output would be "string:..."
In PHP 7.x + XDebug >= 2.4, the output would be "the/file/name.php:11:string:..."
This is an improvement in XDebug that is quite annoying for our purposes, but is actually welcome to most users anyway.
This commit simply fixes that incompatibility
2015-12-11 19:15:48 +01:00
bilouwan
d2cbdd1866
Fix superflous whitespaces & empty lines
2015-12-02 14:09:14 +01:00
bilouwan
e8f40f58a1
Fix compatibility with php5.4
2015-11-30 10:35:42 +01:00
Guilherme Blanco
8ea62b95b8
Tests around reported cases over DDC-2524
2015-11-27 18:44:23 +00:00
bilouwan
832adae6b4
Unit test & fix for merge versionned entity
2015-11-27 17:28:45 +01:00
Guilherme Blanco
57b22bd646
Merge pull request #1568 from guiwoda/patch-ddc-3967
...
Identifier is cached with wrong type
2015-11-24 22:17:59 -05:00
Guido Contreras Woda
e3627f1886
Test that reflects the issue described in http://www.doctrine-project.org/jira/browse/DDC-3967
2015-11-24 10:35:31 -03:00