? ? Success

User tests: Successful: Unsuccessful:

avatar dgt41
dgt41
2 Jul 2016

Separate logic/ output

Base work for any serious work for template update etc..

Summary of Changes

Introduce a layout for this field

Testing Instructions

Apply patch and rename any backend input to tel
eg

<field name="mytextvalue" type="tel" default="Some text" label="Enter some text" description="" size="10" />

Also consult: https://docs.joomla.org/Standard_form_field_types

e18b984 2 Jul 2016 avatar dgt41 init
avatar dgt41 dgt41 - open - 2 Jul 2016
avatar dgt41 dgt41 - change - 2 Jul 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 2 Jul 2016
Labels Added: ?
avatar dgt41 dgt41 - change - 2 Jul 2016
The description was changed
avatar joomla-cms-bot joomla-cms-bot - change - 2 Jul 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 3 Jul 2016
Category Fields Layout
avatar brianteeman brianteeman - change - 3 Jul 2016
Labels
avatar laoneo
laoneo - comment - 3 Jul 2016

Tests are failing.

avatar dgt41
dgt41 - comment - 3 Jul 2016

@laoneo the msg is: Undefined property: JLayoutFile::$value but I can't run phpunit locally without an error Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /Users/dimitris/Documents/github_projects/joomla1/libraries/joomla/log/entry.php on line 103

Any hints are welcome

avatar laoneo
laoneo - comment - 3 Jul 2016

Will have a look.

avatar laoneo
laoneo - comment - 3 Jul 2016

The value attribute is not set and the order of the attributes is not correct with what is expected in the test data.

6bd09e4 3 Jul 2016 avatar dgt41 hmmm
avatar laoneo
laoneo - comment - 3 Jul 2016

Glad it is passing now and that github allows to squash pull requests ?

avatar dgt41
dgt41 - comment - 3 Jul 2016

That looks better ?
@laoneo you realise that I used your code (from your PR for pagination) for eliminating the spaces in the UT?

avatar laoneo
laoneo - comment - 3 Jul 2016

Yes saw it. Perhaps we need to find a way to improve that situation. Otherwise we have to copy that all the time. Any suggestions?

avatar dgt41
dgt41 - comment - 3 Jul 2016

maybe use a dom parser?

avatar dgt41
dgt41 - comment - 3 Jul 2016
avatar mbabker
mbabker - comment - 3 Jul 2016

I can't run phpunit locally without an error Fatal error: Allowed memory size of 134217728 bytes exhausted

IIRC PHP has to have something around 320M memory to run the CMS' test suite in full without the code coverage reports.

avatar laoneo
laoneo - comment - 3 Jul 2016

@dgt41 good idea, will have a look tomorrow if I can come up with a proper solution.

avatar laoneo
laoneo - comment - 6 Jul 2016

Idiot me, PHPUnit comes with XML string asserts. Have a look on 7731ef8. There is no need anymore for the ugly str_replace code ?

avatar dgt41
dgt41 - comment - 6 Jul 2016

I will apply this to all the modified tests (damn, there are a lot of them...)

avatar brianteeman
brianteeman - comment - 6 Jul 2016

Maybe strip the tests from the layout PRs and do all the uit tests as one
Pr ?

On 6 July 2016 at 09:43, Dimitri Grammatikogianni notifications@github.com
wrote:

I will apply this to all the modified tests (damn, there are a lot of
them...)


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#10994 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABPH8Ss6taMN8OtMiR7DGaWF2B1bixVvks5qS2q-gaJpZM4JDtue
.

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar laoneo
laoneo - comment - 6 Jul 2016

When we move the hardcoded HTML output to layout's, the tests start failing, that's why the need to be updated within the PR.

avatar hardiktailored
hardiktailored - comment - 11 Jul 2016

I applied patch and tested input field with type 'tel'. Nothing new, works same as normal text field. How to check tel validations? Rules?


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10994.

avatar brianteeman brianteeman - change - 12 Jul 2016
Category Fields Layout Fields Layout Unit Tests
avatar brianteeman brianteeman - change - 12 Jul 2016
Labels
avatar dgt41 dgt41 - change - 14 Nov 2016
The description was changed
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2016-11-14 11:41:03
Closed_By dgt41
Labels
avatar dgt41 dgt41 - close - 14 Nov 2016
avatar dgt41 dgt41 - close - 14 Nov 2016
avatar joomla-cms-bot joomla-cms-bot - change - 14 Nov 2016
Category Fields Layout Unit Tests Layout Libraries Unit Tests Fields
avatar dgt41 dgt41 - head_ref_deleted - 14 Nov 2016
avatar dgt41 dgt41 - change - 31 Dec 2016
The description was changed
avatar dgt41 dgt41 - edited - 31 Dec 2016

Add a Comment

Login with GitHub to post a comment