Marco Pivetta
224ac9725e
Removed annotation reader constructor argument (incorrect argument used)
2016-06-06 01:34:20 +02:00
Marco Pivetta
7378035f68
#5849 #5850 correcting test scenario: identity map could not be built with auto-generated identities+persist
2016-06-06 00:31:23 +02:00
Marco Pivetta
7fbcbfa271
#5849 #5850 adding group annotations to the newly introduced test case
2016-06-06 00:30:46 +02:00
Rico Humme
996c5048ab
Test Case for Clear entityInsertions for specific entityName
2016-06-06 00:30:33 +02:00
Alessandro Lai
6279c80e05
Regression test: HAVING clause does not translate variable name when used with * and / math operators
2016-01-16 10:28:43 -06:00
Jan Langer
db6cb8dedc
Second level cache stores identifier with correct type even if findById is called with wrong identifier type
2016-01-05 22:13:03 +01:00
Guido Contreras Woda
5092da074a
Test that reflects the issue described in http://www.doctrine-project.org/jira/browse/DDC-3967
2016-01-05 22:12:55 +01:00
Marco Pivetta
27a5284899
doctrine/common 2.6.0 compat
...
Less strict assertion - no need to check the exact file name
2015-12-25 15:24:37 +01:00
Marco Pivetta
0086d17afe
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:24:32 +01:00
Marco Pivetta
7065ff0ac9
Merge branch 'hotfix/#1572-target-entity-resolver-dql-with-interfaces-support' into 2.5
...
Close #1572
2015-12-11 21:35:18 +01:00
Marco Pivetta
aa61328e90
#1572 - test coverage - interfaces should also resolve to target entities when in DQL
2015-12-11 21:30:19 +01:00
Marco Pivetta
66770c5bfe
#1573 - correcting test asset namespace, removing unused properties and bi-directional association
2015-12-11 20:18:53 +01:00
Marco Pivetta
42691c21b4
Removing empty newline
2015-12-11 20:18:48 +01:00
Marco Pivetta
d5c82094df
#1573 removing unused API
2015-12-11 20:18:37 +01:00
bilouwan
e173c930ec
Fix superflous whitespaces & empty lines
2015-12-11 20:18:25 +01:00
bilouwan
7071984559
Fix compatibility with php5.4
2015-12-11 20:18:19 +01:00
bilouwan
216c466233
Unit test & fix for merge versionned entity
2015-12-11 20:18:12 +01:00
Marco Pivetta
6e3ce26429
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:35:28 +01:00
Guilherme Blanco
04254a8e34
Merge pull request #1512 from neoglez/2.5
...
Backport of "LimitSubqueryOutputWalker: fix aliasing of property in OrderBy from MappedSuperclass"
2015-11-15 22:08:59 -05:00
Pantel
d606efd4eb
[DDC-3711] add Test that check if the association key are composite
2015-11-09 03:46:06 +00:00
Pantel
581e1638a2
[DDC-3711] add Tests that check if the association key are composite
2015-11-09 03:45:56 +00:00
Michał Bundyra
567220ef71
prevent duplicate unique index
2015-11-07 16:46:22 +00:00
François-Xavier de Guillebon
1eb9c8a7f6
Added test
2015-11-07 10:35:08 -05:00
neoglez
ef73249bc7
Entity to test a mapped superclass
...
Backport of https://github.com/doctrine/doctrine2/pull/1377/files to branch 2.5
2015-09-21 09:32:54 +02:00
neoglez
a3ece3b419
UnitTest backport of "Failing test case for broken paginator case"
...
UnitTest backport of "Failing test case for broken paginator case" ( 192da14842
).
The branch 2.x is very important because it's related to ZF2 doctrine module (see https://github.com/doctrine/DoctrineORMModule/blob/master/composer.json ) and specially this issue affects the use case of extending the ZF2 user entity defined in ZfcUser ( https://github.com/ZF-Commons/ZfcUser ).
This test is meant to show the need of the backport of e501137d1a
2015-09-21 08:52:46 +02:00
Matthias Pigulla
eaf8b1c7ca
Fix tests related to caches, as per doctrine/cache 1.5.0 changes
...
Backports #1510
Fixes DDC-3908
dd47003641
removes the 'DoctrineNamespaceCacheKey[]' entry from the cache. Thus, all tests counting cache entries were off by one.
2015-09-19 10:44:47 +02:00
Bill Schaller
89eed31e79
Merge pull request #1463 from ehimen/paginate-order-by-subselect
...
Fixed issue when paginator orders by a subselect expression
Conflicts:
tests/Doctrine/Tests/ORM/Tools/Pagination/LimitSubqueryOutputWalkerTest.php
2015-08-04 14:31:08 -04:00
Marco Pivetta
6bc405455e
DDC-3699 - #1387 - leveraging the OrmFunctionalTestCase
API
2015-07-15 21:52:25 +01:00
Marco Pivetta
173729e560
DDC-3699 - #1387 - catching specific exceptions
2015-07-15 21:52:20 +01:00
Marco Pivetta
86abbb0e78
DDC-3699 - #1387 - simpifying tests, clarifying on test method names
2015-07-15 21:52:16 +01:00
Lenard Palko
69ef75ff2d
Added test cases for both one-to-one and one-to-many cases.
2015-07-15 21:52:08 +01:00
Nico Vogelaar
9097014c3d
Fixes ClassMetadata wakeupReflection with embeddable and StaticReflectionService
2015-07-15 20:50:05 +01:00
Marco Pivetta
ed1c4de2b6
DDC-3683 - #1380 - reverting BC break, annotating correct types, cs fixes
2015-07-15 20:45:02 +01:00
Darien Hager
97e90ddefc
Clarify state-changes, replace array_key_exists() with isset() for speed
2015-07-15 20:44:50 +01:00
Darien Hager
d5adda954d
Whitespace formatting tweaks
2015-07-15 20:44:39 +01:00
Darien Hager
c507b52f20
Remove now-superfluous EntityManager check
2015-07-15 20:44:33 +01:00
Darien Hager
d29cc3660f
Change the test listener than layers on second-level-caching so that it is more conservative, only turning on caching-associations when it knows the target entity is cache-able.
2015-07-15 20:44:10 +01:00
Guilherme Blanco
3e6c6af845
Merge pull request #1382 from holtkamp/patch-second-level-cache-association-hydration
...
Patch second level cache association hydration
2015-04-14 11:57:54 -04:00
Matteo Beccati
786791b8fe
Fix DDC767Test failing on php7 + pg94
...
The failure happens when running the full suite or even just:
phpunit tests/Doctrine/Tests/ORM/Functional/Ticket
2015-04-06 04:23:03 +01:00
Marco Pivetta
58a6013d15
Correcting static introspection issue in cache specific tests (null
was being passed to a PersistentCollection
)
2015-04-05 01:29:52 +01:00
Marco Pivetta
4580429616
Removing irrelevant tests (as per discussion with @guilhermeblanco and @stof
2015-04-05 01:29:42 +01:00
Marco Pivetta
4792b4f974
FQCN reference (class was not imported correctly)
2015-04-05 01:29:19 +01:00
Marco Pivetta
c2f6b09ee0
PersistentCollection
should still accept null
and array
as constructor argument, as it did before
2015-04-05 01:29:08 +01:00
Marco Pivetta
a1602bd91f
Hydration of fetch-joined results fails when an entity has a default value of array
for the collection property
2015-04-05 01:28:53 +01:00
Bill Schaller
aa4b2e59ce
fix rare query test failures due to nondeterminism without order by clause
2015-04-05 00:10:11 +01:00
Kristopher Wilson
9d7aa9ba39
Adding failing test case for PaginationTest
...
The failure comes into play when an entity has an attribute named
differently from its corresponding column name.
2015-03-31 21:39:21 +01:00
Bill Schaller
608dfa2f57
Add more detection in LimitSubqueryWalker for conditions that must be handled by LimitSubqueryOutputWalker
2015-03-31 21:39:20 +01:00
Bill Schaller
edcc0fc024
Fix paginator when ordering by while selecting entities using joined table inheritance
2015-03-31 21:39:20 +01:00
Bill Schaller
af3f5c5c5a
Add test for paginating on a query with a subquery in the where clause
...
Conflicts:
tests/Doctrine/Tests/ORM/Tools/Pagination/LimitSubqueryOutputWalkerTest.php
2015-03-31 21:38:58 +01:00
Kristopher Wilson
a4aa18f796
test case for joined table inheritance pagination
2015-03-31 21:38:58 +01:00