File tree Expand file tree Collapse file tree 9 files changed +31
-9
lines changed
functional/tests/app/Magento
Bundle/Test/Block/Adminhtml/Product/Composite
ConfigurableProduct/Test/Block/Adminhtml/Product/Composite
Downloadable/Test/Block/Adminhtml/Product/Composite
integration/testsuite/Magento/Integration/Block/Adminhtml/System/Config
lib/web/mage/adminhtml/wysiwyg/tiny_mce Expand file tree Collapse file tree 9 files changed +31
-9
lines changed Original file line number Diff line number Diff line change 506
506
<column xsi : type =" int" name =" customer_id" padding =" 11" unsigned =" false" nullable =" true" identity =" false"
507
507
comment =" Customer Id" />
508
508
<column xsi : type =" varchar" name =" session_id" nullable =" true" length =" 64" comment =" Session ID" />
509
- <column xsi : type =" timestamp" name =" last_visit_at" on_update =" true" nullable =" true " default =" CURRENT_TIMESTAMP"
509
+ <column xsi : type =" timestamp" name =" last_visit_at" on_update =" true" nullable =" false " default =" CURRENT_TIMESTAMP"
510
510
comment =" Last Visit Time" />
511
511
<constraint xsi : type =" primary" referenceId =" PRIMARY" >
512
512
<column name =" visitor_id" />
Original file line number Diff line number Diff line change 54
54
<label >Maximum Login Failures to Lock Out Account</label >
55
55
<comment >Maximum Number of authentication failures to lock out account.</comment >
56
56
</field >
57
- <field id =" timeout" translate =" label" type =" text comment " sortOrder =" 30" showInDefault =" 1" showInWebsite =" 0" showInStore =" 0" canRestore =" 1" >
57
+ <field id =" timeout" translate =" label comment " type =" text" sortOrder =" 30" showInDefault =" 1" showInWebsite =" 0" showInStore =" 0" canRestore =" 1" >
58
58
<label >Lockout Time (seconds)</label >
59
59
<comment >Period of time in seconds after which account will be unlocked.</comment >
60
60
</field >
Original file line number Diff line number Diff line change 136
136
comment =" User type (admin or customer)" />
137
137
<column xsi : type =" smallint" name =" failures_count" padding =" 5" unsigned =" true" nullable =" true" identity =" false"
138
138
default =" 0" comment =" Number of failed authentication attempts in a row" />
139
- <column xsi : type =" timestamp" name =" lock_expires_at" on_update =" true" nullable =" true " default =" CURRENT_TIMESTAMP"
139
+ <column xsi : type =" timestamp" name =" lock_expires_at" on_update =" true" nullable =" false " default =" CURRENT_TIMESTAMP"
140
140
comment =" Lock expiration time" />
141
141
<constraint xsi : type =" primary" referenceId =" PRIMARY" >
142
142
<column name =" log_id" />
Original file line number Diff line number Diff line change 769
769
<column xsi : type =" varchar" name =" order_increment_id" nullable =" false" length =" 32" comment =" Order Increment Id" />
770
770
<column xsi : type =" int" name =" order_id" padding =" 10" unsigned =" true" nullable =" false" identity =" false"
771
771
comment =" Order Id" />
772
- <column xsi : type =" timestamp" name =" order_created_at" on_update =" true" nullable =" true "
772
+ <column xsi : type =" timestamp" name =" order_created_at" on_update =" true" nullable =" false "
773
773
default =" CURRENT_TIMESTAMP" comment =" Order Increment Id" />
774
774
<column xsi : type =" varchar" name =" customer_name" nullable =" false" length =" 128" comment =" Customer Name" />
775
775
<column xsi : type =" decimal" name =" total_qty" scale =" 4" precision =" 12" unsigned =" false" nullable =" true"
Original file line number Diff line number Diff line change 7
7
-->
8
8
<mapping strict =" 0" >
9
9
<fields >
10
- <qty />
11
10
<checkbox >
12
11
<selector >div[contains(@class,"field choice") and label[contains(.,"%product_name%")]]//input</selector >
13
12
<strategy >xpath</strategy >
Original file line number Diff line number Diff line change 7
7
-->
8
8
<mapping strict =" 0" >
9
9
<fields >
10
- <qty />
11
10
<attribute >
12
11
<selector >//div[@class="product-options"]//label[.="%s"]//following-sibling::*//select</selector >
13
12
<strategy >xpath</strategy >
Original file line number Diff line number Diff line change 7
7
-->
8
8
<mapping strict =" 0" >
9
9
<fields >
10
- <qty />
11
10
<link >
12
11
<selector >//*[@id="downloadable-links-list"]/*[contains(.,"%link_name%")]//input</selector >
13
12
<strategy >xpath</strategy >
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+ declare (strict_types=1 );
7
+
8
+
9
+ namespace Magento \Integration \Block \Adminhtml \System \Config ;
10
+
11
+ class OauthSectionTest extends \Magento \TestFramework \TestCase \AbstractBackendController
12
+ {
13
+ /**
14
+ * Checks that OAuth Section in the system config is loaded
15
+ */
16
+ public function testOAuthSection ()
17
+ {
18
+ $ this ->dispatch ('backend/admin/system_config/edit/section/oauth/ ' );
19
+ $ body = $ this ->getResponse ()->getBody ();
20
+ $ this ->assertContains ('id="oauth_access_token_lifetime-head" ' , $ body );
21
+ $ this ->assertContains ('id="oauth_cleanup-head" ' , $ body );
22
+ $ this ->assertContains ('id="oauth_consumer-head" ' , $ body );
23
+ $ this ->assertContains ('id="oauth_authentication_lock-head" ' , $ body );
24
+ }
25
+ }
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ define([
117
117
jQuery . when . apply ( jQuery , deferreds ) . done ( function ( ) {
118
118
tinyMCE4 . init ( settings ) ;
119
119
this . getPluginButtons ( ) . hide ( ) ;
120
- this . eventBus . attachEventHandler ( 'open_browser_callback' , this . openFileBrowser ) ;
120
+ this . eventBus . attachEventHandler ( 'open_browser_callback' , tinyMceEditors . get ( self . id ) . openFileBrowser ) ;
121
121
} . bind ( this ) ) ;
122
122
} ,
123
123
@@ -129,7 +129,7 @@ define([
129
129
removeEvents : function ( wysiwygId ) {
130
130
var editor ;
131
131
132
- if ( typeof tinyMceEditors !== 'undefined' ) {
132
+ if ( typeof tinyMceEditors !== 'undefined' && tinyMceEditors . get ( wysiwygId ) ) {
133
133
editor = tinyMceEditors . get ( wysiwygId ) ;
134
134
varienGlobalEvents . removeEventHandler ( 'tinymceChange' , editor . onChangeContent ) ;
135
135
}
You can’t perform that action at this time.
0 commit comments