Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
5af891d1
Commit
5af891d1
authored
Dec 06, 2009
by
beberlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2.0] DDC-197 - Add failing test on oracle as a challenge to fix OCI CLOB handling.
parent
146e2319
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletion
+25
-1
CmsArticle.php
tests/Doctrine/Tests/Models/CMS/CmsArticle.php
+1
-1
BasicFunctionalTest.php
tests/Doctrine/Tests/ORM/Functional/BasicFunctionalTest.php
+24
-0
No files found.
tests/Doctrine/Tests/Models/CMS/CmsArticle.php
View file @
5af891d1
...
@@ -19,7 +19,7 @@ class CmsArticle
...
@@ -19,7 +19,7 @@ class CmsArticle
*/
*/
public
$topic
;
public
$topic
;
/**
/**
* @Column(type="
string
")
* @Column(type="
text
")
*/
*/
public
$text
;
public
$text
;
/**
/**
...
...
tests/Doctrine/Tests/ORM/Functional/BasicFunctionalTest.php
View file @
5af891d1
...
@@ -509,6 +509,30 @@ class BasicFunctionalTest extends \Doctrine\Tests\OrmFunctionalTestCase
...
@@ -509,6 +509,30 @@ class BasicFunctionalTest extends \Doctrine\Tests\OrmFunctionalTestCase
"select count(u.id) from Doctrine\Tests\Models\CMS\CmsUser u"
)
"select count(u.id) from Doctrine\Tests\Models\CMS\CmsUser u"
)
->
getSingleScalarResult
());
->
getSingleScalarResult
());
}
}
public
function
testTextColumnSaveAndRetrieve
()
{
$user
=
new
CmsUser
;
$user
->
name
=
'Guilherme'
;
$user
->
username
=
'gblanco'
;
$user
->
status
=
'developer'
;
$this
->
_em
->
persist
(
$user
);
$article
=
new
\Doctrine\Tests\Models\CMS\CmsArticle
();
$article
->
text
=
"Lorem ipsum dolor sunt."
;
$article
->
topic
=
"A Test Article!"
;
$article
->
setAuthor
(
$user
);
$this
->
_em
->
persist
(
$article
);
$this
->
_em
->
flush
();
$articleId
=
$article
->
id
;
$this
->
_em
->
clear
();
$article
=
$this
->
_em
->
find
(
'Doctrine\Tests\Models\CMS\CmsArticle'
,
$articleId
);
$this
->
assertEquals
(
"Lorem ipsum dolor sunt."
,
$article
->
text
);
}
//DRAFT OF EXPECTED/DESIRED BEHAVIOR
//DRAFT OF EXPECTED/DESIRED BEHAVIOR
/*public function testPersistentCollectionContainsDoesNeverInitialize()
/*public function testPersistentCollectionContainsDoesNeverInitialize()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment